diff options
| author | Felix M. Cobos | 2017-09-26 14:22:49 +0200 |
|---|---|---|
| committer | Felix M. Cobos | 2017-09-26 17:04:04 +0200 |
| commit | ec644ccb69dae13c173d69cb26b9a59ae20854e3 (patch) | |
| tree | be6d06cb37b47337850c68d2b051a154a71949a7 /platform/x11/detect.py | |
| parent | ccb4a6acee24ca0e0f14599364e171b7b88f8ac4 (diff) | |
| download | godot-ec644ccb69dae13c173d69cb26b9a59ae20854e3.tar.gz godot-ec644ccb69dae13c173d69cb26b9a59ae20854e3.tar.zst godot-ec644ccb69dae13c173d69cb26b9a59ae20854e3.zip | |
Diffstat (limited to 'platform/x11/detect.py')
| -rw-r--r-- | platform/x11/detect.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index c8d9930af..1f7f67fe1 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -120,7 +120,10 @@ def configure(env): if env['use_lto']: env.Append(CCFLAGS=['-flto']) - env.Append(LINKFLAGS=['-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']) if not env['use_llvm']: env['RANLIB'] = 'gcc-ranlib' env['AR'] = 'gcc-ar' |
