diff options
author | mhilbrunner <mhilbrunner@users.noreply.github.com> | 2017-10-27 20:28:17 +0200 |
---|---|---|
committer | mhilbrunner <m.hilbrunner@gmail.com> | 2017-10-27 21:04:27 +0200 |
commit | 0407c2ac46174630f27091a8c529ad9c335c0647 (patch) | |
tree | fcbfdced62de51657608ce91e5eb19fa5d1cfcdf /platform/windows | |
parent | 6fc2fffb459e8c6deb87fe795e8103747f09b077 (diff) |
detect.py: Fix KeyError if using MinGW and LTO
Diffstat (limited to 'platform/windows')
-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 |