summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-27 21:22:37 +0200
committerGitHub <noreply@github.com>2017-10-27 21:22:37 +0200
commit0c043bc25785f4f9988033848a282ba17afe5b22 (patch)
tree12f0160be4a6a9c8d4e1c8ff8aa1acb806b53532 /platform
parent70c3ea5a8274739f0c4ae0377940b303fb83e8bf (diff)
parent0407c2ac46174630f27091a8c529ad9c335c0647 (diff)
Merge pull request #12442 from mhilbrunner/patch-1
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