forked from OSchip/llvm-project
Remove the conditional that avoided passing the Objective-C runtime specification flags to cc1. This fixes PR10369 (__builtin_NSStringMakeConstantString() selecting the wrong runtime in C / C++ code and crashing, although it doesn't fix the problem that instantiating the Mac runtime for non-Darwin targets was crashing.)
llvm-svn: 140853
This commit is contained in:
parent
5c05579f94
commit
3154e68bef
|
@ -1903,7 +1903,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
// -fobjc-nonfragile-abi=0 is default.
|
||||
ObjCRuntime objCRuntime;
|
||||
unsigned objcABIVersion = 0;
|
||||
if (types::isObjC(InputType)) {
|
||||
bool NeXTRuntimeIsDefault
|
||||
= (IsRewriter || getToolChain().getTriple().isOSDarwin());
|
||||
if (Args.hasFlag(options::OPT_fnext_runtime, options::OPT_fgnu_runtime,
|
||||
|
@ -1987,7 +1986,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
getToolChain().IsObjCDefaultSynthPropertiesDefault())) {
|
||||
CmdArgs.push_back("-fobjc-default-synthesize-properties");
|
||||
}
|
||||
}
|
||||
|
||||
// Allow -fno-objc-arr to trump -fobjc-arr/-fobjc-arc.
|
||||
// NOTE: This logic is duplicated in ToolChains.cpp.
|
||||
|
|
Loading…
Reference in New Issue