Merge pull request #277024 from abl/add-jam-std-c89

jam: set std=c89
This commit is contained in:
Pierre Bourdon 2023-12-29 15:47:31 +01:00 committed by GitHub
commit 8172273c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,6 +7,9 @@ let
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ bison ];
# Jam uses c89 conventions
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-std=c89";
# Jambase expects ar to have flags.
preConfigure = ''
export AR="$AR rc"