forked from OSchip/llvm-project
Normalize target triple passed out of driver. Basically this means
that at cc1 level we will always have normalized triple and thus can provide necessary default based on e.g. environment value (e.g. for "arm-eabi" triple, etc.) llvm-svn: 127087
This commit is contained in:
parent
965b0e3106
commit
a9ff8576fb
|
@ -1323,7 +1323,7 @@ std::string Driver::GetTemporaryPath(const char *Suffix) const {
|
||||||
|
|
||||||
const HostInfo *Driver::GetHostInfo(const char *TripleStr) const {
|
const HostInfo *Driver::GetHostInfo(const char *TripleStr) const {
|
||||||
llvm::PrettyStackTraceString CrashInfo("Constructing host");
|
llvm::PrettyStackTraceString CrashInfo("Constructing host");
|
||||||
llvm::Triple Triple(TripleStr);
|
llvm::Triple Triple(llvm::Triple::normalize(TripleStr).c_str());
|
||||||
|
|
||||||
// TCE is an osless target
|
// TCE is an osless target
|
||||||
if (Triple.getArchName() == "tce")
|
if (Triple.getArchName() == "tce")
|
||||||
|
|
Loading…
Reference in New Issue