diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-11-11 16:08:59 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-11-11 16:08:59 +0000 |
commit | de17ba7af23bd3693add73af127600b568cb210b (patch) | |
tree | 41c0eb2048ee903badeccb1f7ba7c35069105224 /lib/Driver/Tools.cpp | |
parent | 473f67444b60df79c3062b151366527fe8dd533f (diff) |
Driver: Allow build system override of default non-fragile ABI version.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index bf40760df2..eb5c8ab671 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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)) { |