From 2ae8d9371e989240a87f31c1229fa34e4650abfd Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Wed, 19 Dec 2012 16:43:56 +0100 Subject: [PATCH] Apply custom build flags last This allows using RAVE_FLAGS to override the more general compiler flags. --- bin/gen_build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gen_build b/bin/gen_build index 313c993a..9843240a 100755 --- a/bin/gen_build +++ b/bin/gen_build @@ -660,7 +660,7 @@ open("#{builddir}/build.ninja", "w") do |io| COMPILER_INFO.each do |key, value| io << "rule #{value[:rule]}\n" - io << " command = '#{value[:compiler]}' $FLAGS $RAVE_FLAGS #{value[:flags]} -o $out -MMD -MF $out.d -I$builddir/include $in\n" + io << " command = '#{value[:compiler]}' $FLAGS #{value[:flags]} $RAVE_FLAGS -o $out -MMD -MF $out.d -I$builddir/include $in\n" io << " depfile = $depfile\n" io << " description = Compile ‘$in’…\n\n" end