Improve LTO build with MSVC
This commit is contained in:
parent
548bd4ef1d
commit
abf416f922
1 changed files with 5 additions and 1 deletions
|
@ -190,7 +190,11 @@ def configure(env):
|
|||
|
||||
if (env["use_lto"]):
|
||||
env.Append(CCFLAGS=['/GL'])
|
||||
env.Append(LINKFLAGS=['/LTCG'])
|
||||
env.Append(ARFLAGS=['/LTCG'])
|
||||
if env["progress"]:
|
||||
env.Append(LINKFLAGS=['/LTCG:STATUS'])
|
||||
else:
|
||||
env.Append(LINKFLAGS=['/LTCG'])
|
||||
|
||||
env.Append(CCFLAGS=["/I" + p for p in os.getenv("INCLUDE").split(";")])
|
||||
env.Append(LIBPATH=[p for p in os.getenv("LIB").split(";")])
|
||||
|
|
Loading…
Reference in a new issue