diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-10-27 21:22:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-27 21:22:37 +0200 |
commit | 0c043bc25785f4f9988033848a282ba17afe5b22 (patch) | |
tree | 12f0160be4a6a9c8d4e1c8ff8aa1acb806b53532 /platform | |
parent | 70c3ea5a8274739f0c4ae0377940b303fb83e8bf (diff) | |
parent | 0407c2ac46174630f27091a8c529ad9c335c0647 (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.py | 5 |
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 |