[Vendor] Allow the user to override default cflags.

This commit is contained in:
Eloy Durán
2014-10-17 11:12:26 +02:00
committed by Watson
parent cb21a9ae21
commit 4b62457ce4

View File

@@ -120,7 +120,9 @@ EOS
App.info 'Compile', File.join(@path, srcfile)
FileUtils.mkdir_p File.dirname(objfile)
sh "#{compiler} #{cflags} #{@config.cflags(platform, cplusplus)} -I. -include \"#{pch}\" -c \"#{srcfile}\" -o \"#{objfile}\""
# Always append the user's clfags *after* ours, so that the user gets a
# chance to override settings that we set. E.g. `-fno-modules`.
sh "#{compiler} #{@config.cflags(platform, cplusplus)} #{cflags} -I. -include \"#{pch}\" -c \"#{srcfile}\" -o \"#{objfile}\""
end
if File.exist?(build_dir)