summaryrefslogtreecommitdiff
path: root/platform/windows
diff options
context:
space:
mode:
authorFelix M. Cobos <felix.cobos@gmail.com>2017-09-26 14:22:49 +0200
committerFelix M. Cobos <felix.cobos@gmail.com>2017-09-26 17:04:04 +0200
commitec644ccb69dae13c173d69cb26b9a59ae20854e3 (patch)
treebe6d06cb37b47337850c68d2b051a154a71949a7 /platform/windows
parentccb4a6acee24ca0e0f14599364e171b7b88f8ac4 (diff)
Reduce gcc lto build time by telling the linker to
use the number of jobs indicated by -j
Diffstat (limited to 'platform/windows')
-rw-r--r--platform/windows/detect.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 92f2e078c8..031b397988 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -265,7 +265,10 @@ def configure(env):
if env['use_lto']:
env.Append(CCFLAGS=['-flto'])
- env.Append(LINKFLAGS=['-flto'])
+ if not env['use_llvm'] and env.GetOption("num_jobs") > 1:
+ env.Append(LINKFLAGS=['-flto=' + str(env.GetOption("num_jobs"))])
+ else:
+ env.Append(LINKFLAGS=['-flto'])
## Compile flags