detect.py: Fix KeyError if using MinGW and LTO

This commit is contained in:
mhilbrunner 2017-10-27 20:28:17 +02:00 committed by mhilbrunner
parent 6fc2fffb45
commit 0407c2ac46

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