]> granicus.if.org Git - clang/commitdiff
Driver: Allow build system override of default non-fragile ABI version.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 11 Nov 2010 16:08:59 +0000 (16:08 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 11 Nov 2010 16:08:59 +0000 (16:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118786 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp

index bf40760df2c9d90c54655752b7756b6fc7369c57..eb5c8ab67198ff5648e0eb66d2ccee2be347b636 100644 (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)) {