csmith: move CXXFLAGS into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-15 18:58:34 +01:00
parent 5b8134af6e
commit 46acdafc43
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ stdenv.mkDerivation (finalAttrs: {
];
# https://github.com/clMathLibraries/clFFT/issues/237
CXXFLAGS = "-std=c++98";
env.CXXFLAGS = "-std=c++98";
meta = {
description = "Library containing FFT functions written in OpenCL";
+4 -1
View File
@@ -42,7 +42,10 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
hardeningDisable = [ "fortify" ];
CXXFLAGS = lib.optionals withOpenMP [ "-fopenmp" ];
env = lib.optionalAttrs withOpenMP {
CXXFLAGS = "-fopenmp";
};
doCheck = true;
+1 -1
View File
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
SysCPU
]);
CXXFLAGS = "-std=c++98";
env.CXXFLAGS = "-std=c++98";
postInstall = ''
substituteInPlace $out/bin/compiler_test.pl \