Browse Source

Merge pull request #330 from ddobrev/master

Fixed the target triples with the new Clang
pull/332/head
João Matos 11 years ago
parent
commit
51a5eced03
  1. 2
      src/CppParser/Parser.cpp

2
src/CppParser/Parser.cpp

@ -153,7 +153,7 @@ void Parser::SetupHeader() @@ -153,7 +153,7 @@ void Parser::SetupHeader()
TO->Triple = llvm::sys::getDefaultTargetTriple();
if (!Opts->TargetTriple.empty())
TO->Triple = Opts->TargetTriple;
TO->Triple = llvm::Triple::normalize(Opts->TargetTriple);
TargetInfo* TI = TargetInfo::CreateTargetInfo(C->getDiagnostics(), TO);
if (!TI)

Loading…
Cancel
Save