Sync minimal-flags with what Gentoo uses.
This was SVN commit r15861.
This commit is contained in:
parent
4ef63e8673
commit
4ecfa25c5e
@ -177,7 +177,12 @@ end
|
|||||||
|
|
||||||
function project_set_build_flags()
|
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
|
if cc ~= "icc" and (os.is("windows") or not _OPTIONS["minimal-flags"]) then
|
||||||
-- adds the -Wall compiler flag
|
-- adds the -Wall compiler flag
|
||||||
flags { "ExtraWarnings" } -- this causes far too many warnings/remarks on ICC
|
flags { "ExtraWarnings" } -- this causes far too many warnings/remarks on ICC
|
||||||
@ -366,13 +371,11 @@ function project_set_build_flags()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not _OPTIONS["minimal-flags"] then
|
buildoptions {
|
||||||
buildoptions {
|
-- Hide symbols in dynamic shared objects by default, for efficiency and for equivalence with
|
||||||
-- Hide symbols in dynamic shared objects by default, for efficiency and for equivalence with
|
-- Windows - they should be exported explicitly with __attribute__ ((visibility ("default")))
|
||||||
-- Windows - they should be exported explicitly with __attribute__ ((visibility ("default")))
|
"-fvisibility=hidden"
|
||||||
"-fvisibility=hidden"
|
}
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
if _OPTIONS["bindir"] then
|
if _OPTIONS["bindir"] then
|
||||||
defines { "INSTALLED_BINDIR=" .. _OPTIONS["bindir"] }
|
defines { "INSTALLED_BINDIR=" .. _OPTIONS["bindir"] }
|
||||||
|
Loading…
Reference in New Issue
Block a user