Merge pull request #304937 from viraptor/csmith-std-fix

csmith: fix build with explicit std
This commit is contained in:
Stanisław Pitucha 2024-04-26 09:11:03 +10:00 committed by GitHub
commit 53ddbd41e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ m4 makeWrapper ];
buildInputs = [ libbsd ] ++ (with perlPackages; [ perl SysCPU ]);
CXXFLAGS = "-std=c++98";
postInstall = ''
substituteInPlace $out/bin/compiler_test.pl \
--replace '$CSMITH_HOME/runtime' $out/include/${pname}-${version} \