Help llvm5 find ARM Mac triple.
This commit is contained in:
parent
722a6f6b97
commit
33be2c79c0
@ -1198,7 +1198,12 @@ static void stringifyPreprocSetting(PreprocessorOptions& PPOpts,
|
||||
const size_t argc = COpts.Remaining.size();
|
||||
const char* const* argv = &COpts.Remaining[0];
|
||||
std::vector<const char*> argvCompile(argv, argv+1);
|
||||
argvCompile.reserve(argc+5);
|
||||
argvCompile.reserve(argc+32);
|
||||
|
||||
#if __APPLE__ && __arm64__
|
||||
argvCompile.push_back("-Xclang");
|
||||
argvCompile.push_back("-triple=arm64-apple-macosx11.0.0");
|
||||
#endif
|
||||
|
||||
// Variables for storing the memory of the C-string arguments.
|
||||
// FIXME: We shouldn't use C-strings in the first place, but just use
|
||||
|
Loading…
x
Reference in New Issue
Block a user