csmith: move CXXFLAGS into env for structuredAttrs
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -42,7 +42,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
enableParallelBuilding = true;
|
||||
hardeningDisable = [ "fortify" ];
|
||||
CXXFLAGS = lib.optionals withOpenMP [ "-fopenmp" ];
|
||||
|
||||
env = lib.optionalAttrs withOpenMP {
|
||||
CXXFLAGS = "-fopenmp";
|
||||
};
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||
SysCPU
|
||||
]);
|
||||
|
||||
CXXFLAGS = "-std=c++98";
|
||||
env.CXXFLAGS = "-std=c++98";
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/bin/compiler_test.pl \
|
||||
|
||||
Reference in New Issue
Block a user