Apply custom build flags last

This allows using RAVE_FLAGS to override the more general compiler flags.
This commit is contained in:
Allan Odgaard
2012-12-19 16:43:56 +01:00
parent 6e228b69aa
commit 2ae8d9371e

View File

@@ -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