add lld_flavor info to target spec
this field defaults to the LD / GNU flavor
This commit is contained in:
parent
a0911cf95d
commit
750e72b9e0
2 changed files with 6 additions and 0 deletions
|
|
@ -624,6 +624,8 @@ pub fn linker_and_flavor(sess: &Session) -> (PathBuf, LinkerFlavor) {
|
|||
LinkerFlavor::Ld
|
||||
} else if stem == "link" || stem == "lld-link" {
|
||||
LinkerFlavor::Msvc
|
||||
} else if stem == "lld" || stem == "rust-lld" {
|
||||
LinkerFlavor::Lld(sess.target.target.options.lld_flavor)
|
||||
} else {
|
||||
// fall back to the value in the target spec
|
||||
sess.target.target.linker_flavor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue