mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Remove rustc wrapper script for gold in favor of using RUSTFLAGS
This commit is contained in:
parent
dbd25fc41a
commit
0f1107baef
2 changed files with 1 additions and 3 deletions
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
rustc -C link-args=-fuse-ld=gold "$@"
|
|
|
@ -385,7 +385,7 @@ class CommandBase(object):
|
||||||
# Don't run the gold linker if on Windows https://github.com/servo/servo/issues/9499
|
# Don't run the gold linker if on Windows https://github.com/servo/servo/issues/9499
|
||||||
if self.config["tools"]["rustc-with-gold"] and sys.platform not in ("win32", "msys"):
|
if self.config["tools"]["rustc-with-gold"] and sys.platform not in ("win32", "msys"):
|
||||||
if subprocess.call(['which', 'ld.gold'], stdout=PIPE, stderr=PIPE) == 0:
|
if subprocess.call(['which', 'ld.gold'], stdout=PIPE, stderr=PIPE) == 0:
|
||||||
env['RUSTC'] = path.join(self.context.topdir, 'etc', 'rustc-with-gold')
|
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C link-args=-fuse-ld=gold"
|
||||||
|
|
||||||
return env
|
return env
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue