Link with ld.gold by default

To disable, pass `-C disable-gold`
This commit is contained in:
Brian Anderson 2015-08-08 11:33:43 -07:00
parent 27a1834ce5
commit 34dc0e0739
3 changed files with 57 additions and 0 deletions

View file

@ -539,6 +539,8 @@ options! {CodegenOptions, CodegenSetter, basic_codegen_options,
"explicitly enable the cfg(debug_assertions) directive"),
inline_threshold: Option<usize> = (None, parse_opt_uint,
"set the inlining threshold for"),
disable_gold: bool = (false, parse_bool,
"disable use of the ld.gold linker"),
}