Driver: Allow build system override of default non-fragile ABI version.

llvm-svn: 118786
This commit is contained in:
Daniel Dunbar 2010-11-11 16:08:59 +00:00
parent b76f2402b0
commit aeed5fe6a2
1 changed files with 4 additions and 0 deletions

View File

@ -1425,7 +1425,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
options::OPT_fno_objc_nonfragile_abi,
getToolChain().IsObjCNonFragileABIDefault())) {
// Determine the non-fragile ABI version to use.
#ifdef DISABLE_DEFAULT_NONFRAGILEABI_TWO
unsigned NonFragileABIVersion = 1;
#else
unsigned NonFragileABIVersion = 2;
#endif
if (Arg *A = Args.getLastArg(
options::OPT_fobjc_nonfragile_abi_version_EQ)) {