Remove rustc wrapper script for gold in favor of using RUSTFLAGS

This commit is contained in:
Lars Bergstrom 2016-03-25 10:50:21 -05:00
parent dbd25fc41a
commit 0f1107baef
2 changed files with 1 additions and 3 deletions

View file

@ -385,7 +385,7 @@ class CommandBase(object):
# 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 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