Don't explicitly disable gold on Windows

This seems to be working fine now on CI, so I think we can remove this
workaround.
This commit is contained in:
Martin Robinson 2023-06-22 08:51:38 +02:00
parent 8bac189ea2
commit da581535d1
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8

View file

@ -628,8 +628,7 @@ class CommandBase(object):
if self.config["build"]["rustflags"]:
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " " + self.config["build"]["rustflags"]
# 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 != "win32":
if self.config["tools"]["rustc-with-gold"]:
if subprocess.call(['which', 'ld.gold'], stdout=PIPE, stderr=PIPE) == 0:
env['RUSTFLAGS'] = env.get('RUSTFLAGS', "") + " -C link-args=-fuse-ld=gold"