diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-23 22:55:26 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-23 22:55:26 +0200 |
commit | 43757fcc85ac8e1c4657b30968b9bf2381aec329 (patch) | |
tree | 1278196e6e4a11190f5b63872ab77c028a33222c /platform/x11 | |
parent | 480b417c5baf4d15379bfca873e19e0e0ba24f45 (diff) |
Fix gcc lto
This repairs LTO on X11 and adds it to MingW targets. The difference in
linktime is substantial, but runtime performance is quite a bit better.
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/detect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index efd388e44f..3667df907e 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -120,6 +120,9 @@ def configure(env): if (env["use_lto"] == "yes"): env.Append(CCFLAGS=['-flto']) env.Append(LINKFLAGS=['-flto']) + if (env["use_llvm"] == "no"): + env['RANLIB'] = 'gcc-ranlib' + env['AR'] = 'gcc-ar' env.Append(CCFLAGS=['-pipe']) env.Append(LINKFLAGS=['-pipe']) |