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:
parent
f793f3ea1e
commit
c1f6db6f3c
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user