mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Update command_base.py
Fixup for https://github.com/servo/servo/pull/29912#issuecomment-1605347271
This commit is contained in:
parent
19eeca7b3a
commit
0256ac9c62
1 changed files with 1 additions and 1 deletions
|
@ -629,7 +629,7 @@ class CommandBase(object):
|
|||
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " " + self.config["build"]["rustflags"]
|
||||
|
||||
if self.config["tools"]["rustc-with-gold"]:
|
||||
if subprocess.call(['which', 'ld.gold'], stdout=PIPE, stderr=PIPE) == 0:
|
||||
if shutil.which('ld.gold'):
|
||||
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C link-args=-fuse-ld=gold"
|
||||
|
||||
if not (self.config["build"]["ccache"] == ""):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue