@@ -516,15 +516,15 @@ pub fn host_triple() -> ~str {
516
516
// idea of the host triple is the same as for the set of libraries we've
517
517
// actually built. We can't just take LLVM's host triple because they
518
518
// normalize all ix86 architectures to i386.
519
-
520
- // FIXME (#2400): Instead of grabbing the host triple we really should
521
- // be grabbing (at compile time) the target triple that this rustc is
522
- // built with and calling that (at runtime) the host triple.
523
- let ht = env!(" CFG_BUILD_TRIPLE ") ;
519
+ //
520
+ // Instead of grabbing the host triple (for the current host), we grab (at
521
+ // compile time) the target triple that this rustc is built with and
522
+ // calling that (at runtime) the host triple.
523
+ let ht = env!(" CFG_COMPILER_TRIPLE ") ;
524
524
return if ht != ~"" {
525
525
ht
526
526
} else {
527
- fail ! ( "rustc built without CFG_BUILD_TRIPLE " )
527
+ fail ! ( "rustc built without CFG_COMPILER_TRIPLE " )
528
528
} ;
529
529
}
530
530
@@ -534,15 +534,15 @@ pub fn host_triple() -> ~str {
534
534
// idea of the host triple is the same as for the set of libraries we've
535
535
// actually built. We can't just take LLVM's host triple because they
536
536
// normalize all ix86 architectures to i386.
537
-
538
- // FIXME (#2400): Instead of grabbing the host triple we really should
539
- // be grabbing (at compile time) the target triple that this rustc is
540
- // built with and calling that (at runtime) the host triple.
541
- let ht = env ! ( "CFG_BUILD_TRIPLE " ) ;
537
+ //
538
+ // Instead of grabbing the host triple (for the current host), we grab (at
539
+ // compile time) the target triple that this rustc is built with and
540
+ // calling that (at runtime) the host triple.
541
+ let ht = env ! ( "CFG_COMPILER_TRIPLE " ) ;
542
542
return if ht != "" {
543
543
ht. to_owned ( )
544
544
} else {
545
- fail ! ( "rustc built without CFG_BUILD_TRIPLE " )
545
+ fail ! ( "rustc built without CFG_COMPILER_TRIPLE " )
546
546
} ;
547
547
}
548
548
0 commit comments