mirror of
https://github.com/servo/servo.git
synced 2025-06-11 18:10:11 +00:00
Auto merge of #7229 - servo:gold, r=metajack
Use the gold linker when available. This shaves 50 seconds off the build time on my machine. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7229) <!-- Reviewable:end -->
This commit is contained in:
commit
a1aed50b5a
3 changed files with 8 additions and 3 deletions
|
@ -302,6 +302,9 @@ class CommandBase(object):
|
|||
if hosts_file_path:
|
||||
env['HOST_FILE'] = hosts_file_path
|
||||
|
||||
env['RUSTDOC'] = path.join(self.context.topdir, 'etc', 'rustdoc-with-private')
|
||||
env['RUSTC'] = path.join(self.context.topdir, 'etc', 'rustc-with-gold')
|
||||
|
||||
return env
|
||||
|
||||
def servo_crate(self):
|
||||
|
|
|
@ -156,10 +156,8 @@ class MachCommands(CommandBase):
|
|||
else:
|
||||
copy2(full_name, destination)
|
||||
|
||||
env = self.build_env()
|
||||
env['RUSTDOC'] = '../../etc/rustdoc-with-private'
|
||||
return subprocess.call(["cargo", "doc"] + params,
|
||||
env=env, cwd=self.servo_crate())
|
||||
env=self.build_env(), cwd=self.servo_crate())
|
||||
|
||||
@Command('browse-doc',
|
||||
description='Generate documentation and open it in a web browser',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue