1
0
forked from 0ad/0ad

Sync minimal-flags with what Gentoo uses.

This was SVN commit r15861.
This commit is contained in:
leper 2014-10-12 23:40:05 +00:00
parent 4ef63e8673
commit 4ecfa25c5e

View File

@ -177,7 +177,12 @@ end
function project_set_build_flags()
flags { "Symbols", "NoEditAndContinue" }
flags { "NoEditAndContinue" }
if not _OPTIONS["minimal-flags"] then
flags { "Symbols" }
end
if cc ~= "icc" and (os.is("windows") or not _OPTIONS["minimal-flags"]) then
-- adds the -Wall compiler flag
flags { "ExtraWarnings" } -- this causes far too many warnings/remarks on ICC
@ -366,13 +371,11 @@ function project_set_build_flags()
end
end
if not _OPTIONS["minimal-flags"] then
buildoptions {
-- Hide symbols in dynamic shared objects by default, for efficiency and for equivalence with
-- Windows - they should be exported explicitly with __attribute__ ((visibility ("default")))
"-fvisibility=hidden"
}
end
buildoptions {
-- Hide symbols in dynamic shared objects by default, for efficiency and for equivalence with
-- Windows - they should be exported explicitly with __attribute__ ((visibility ("default")))
"-fvisibility=hidden"
}
if _OPTIONS["bindir"] then
defines { "INSTALLED_BINDIR=" .. _OPTIONS["bindir"] }