Merge pull request #12442 from mhilbrunner/patch-1

detect.py: Fix KeyError if using MinGW and LTO
This commit is contained in:
Rémi Verschelde 2017-10-27 21:22:37 +02:00 committed by GitHub
commit 0c043bc257
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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