Skip to content

Commit

Permalink
Merge pull request #12442 from mhilbrunner/patch-1
Browse files Browse the repository at this point in the history
detect.py: Fix KeyError if using MinGW and LTO
  • Loading branch information
akien-mga authored Oct 27, 2017
2 parents 70c3ea5 + 0407c2a commit 0c043bc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions platform/windows/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0c043bc

Please sign in to comment.