Use llvm::sys::getProcessTriple, instead of getDefaultTargetTriple.

llvm/clang could be configured to output a default target not the same as the running
process.
This commit is contained in:
Frederich Munch 2016-08-11 03:49:08 -04:00 committed by sftnight
parent f793f3ea1e
commit c1f6db6f3c

View File

@ -661,8 +661,7 @@ static void stringifyPreprocSetting(PreprocessorOptions& PPOpts,
return nullptr;
}
clang::driver::Driver Drvr(argv[0], llvm::sys::getDefaultTargetTriple(),
*Diags);
clang::driver::Driver Drvr(argv[0], llvm::sys::getProcessTriple(), *Diags);
//Drvr.setWarnMissingInput(false);
Drvr.setCheckInputsExist(false); // think foo.C(12)
llvm::ArrayRef<const char*>RF(&(argvCompile[0]), argvCompile.size());