mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
Use the gold linker when available.
This shaves 50 seconds off the build time on my machine.
This commit is contained in:
parent
d4d18f51f2
commit
fb7a53c6cf
3 changed files with 8 additions and 3 deletions
4
etc/rustc-with-gold
Executable file
4
etc/rustc-with-gold
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
EXTRA_ARGS=""
|
||||
which ld.gold > /dev/null 2>&1 && EXTRA_ARGS="-C link-args=-fuse-ld=gold"
|
||||
rustc $EXTRA_ARGS "$@"
|
Loading…
Add table
Add a link
Reference in a new issue