From 0256ac9c620bfff1eb0d962284d125efb79d5305 Mon Sep 17 00:00:00 2001 From: Samson <16504129+sagudev@users.noreply.github.com> Date: Sat, 24 Jun 2023 12:05:32 +0200 Subject: [PATCH] Update command_base.py Fixup for https://github.com/servo/servo/pull/29912#issuecomment-1605347271 --- python/servo/command_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 33c3689b954..ebb96d8866a 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -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"] == ""):