Merge pull request #12442 from mhilbrunner/patch-1
detect.py: Fix KeyError if using MinGW and LTO
This commit is contained in:
commit
0c043bc257
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue