add lld_flavor info to target spec

this field defaults to the LD / GNU flavor
This commit is contained in:
Jorge Aparicio 2018-08-18 16:31:36 +02:00
parent a0911cf95d
commit 750e72b9e0
2 changed files with 6 additions and 0 deletions

View file

@ -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