mk: Split target triples into bulid triple + host triples + target triples
For cross compiling to targets that don't want to build a compiler
This commit is contained in:
parent
e0767bf24f
commit
15c0c35352
18 changed files with 176 additions and 145 deletions
|
|
@ -516,11 +516,11 @@ pub fn host_triple() -> ~str {
|
|||
// FIXME (#2400): Instead of grabbing the host triple we really should
|
||||
// be grabbing (at compile time) the target triple that this rustc is
|
||||
// built with and calling that (at runtime) the host triple.
|
||||
let ht = env!("CFG_HOST_TRIPLE");
|
||||
let ht = env!("CFG_BUILD_TRIPLE");
|
||||
return if ht != ~"" {
|
||||
ht
|
||||
} else {
|
||||
fail!(~"rustc built without CFG_HOST_TRIPLE")
|
||||
fail!(~"rustc built without CFG_BUILD_TRIPLE")
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue