summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authormhilbrunner <mhilbrunner@users.noreply.github.com>2017-10-27 20:28:17 +0200
committermhilbrunner <m.hilbrunner@gmail.com>2017-10-27 21:04:27 +0200
commit0407c2ac46174630f27091a8c529ad9c335c0647 (patch)
treefcbfdced62de51657608ce91e5eb19fa5d1cfcdf /platform
parent6fc2fffb459e8c6deb87fe795e8103747f09b077 (diff)
detect.py: Fix KeyError if using MinGW and LTO
Diffstat (limited to 'platform')
-rw-r--r--platform/windows/detect.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index cd4230acd4..bac5df5668 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -264,10 +264,7 @@ def configure(env):
if env['use_lto']:
env.Append(CCFLAGS=['-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'])
+ env.Append(LINKFLAGS=['-flto=' + str(env.GetOption("num_jobs"))])
## Compile flags