summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2017-12-31 14:35:38 -0200
committerGeorge Marques <george@gmarqu.es>2017-12-31 14:35:38 -0200
commitabf416f922cb47b32ddc391eb58f1a8572579665 (patch)
tree544e7bdb2104ef8d05e126ee5e80641c10702b78
parent548bd4ef1d3528cd77dd8fb77be8de9a5d5d044f (diff)
Improve LTO build with MSVC
-rw-r--r--platform/windows/detect.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 3b8de2caf4..489bac50f5 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -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(";")])