Unverified Commit 53ddbd41 authored by Stanisław Pitucha's avatar Stanisław Pitucha Committed by GitHub
Browse files

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

csmith: fix build with explicit std
parents 19196d6f ee55a72b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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} \