]> granicus.if.org Git - clang/commitdiff
clang-cc: Allow building for x86_64 with -mmacosx-version-min=10.4.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 26 Oct 2009 17:52:49 +0000 (17:52 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 26 Oct 2009 17:52:49 +0000 (17:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85132 91177308-0d34-0410-b5e6-96231b3b80d8

test/Coverage/targets.c
test/Frontend/mmacosx-version-min-test.c [deleted file]
tools/clang-cc/clang-cc.cpp

index 5a87b4dcc55481f143b471944f08071a89c1a850..663f4abf0282d08ac4cc0e9f5f2159652fb90cf4 100644 (file)
@@ -16,4 +16,8 @@
 // RUN: clang-cc -g -triple x86_64-apple-darwin9 -emit-llvm -o %t %s &&
 // RUN: clang-cc -g -triple x86_64-pc-linux-gnu -emit-llvm -o %t %s &&
 // RUN: clang-cc -g -triple x86_64-unknown-unknown -emit-llvm -o %t %s &&
+
+// <rdar://problem/7181838> clang 1.0 fails to compile Python 2.6
+// RUN: clang-cc -g -triple x86_64-apple-darwin9 -emit-llvm -o %t %s -mmacosx-version-min=10.4 &&
+
 // RUN: true
diff --git a/test/Frontend/mmacosx-version-min-test.c b/test/Frontend/mmacosx-version-min-test.c
deleted file mode 100644 (file)
index d117d1c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-// RUN: not clang-cc -fsyntax-only -mmacosx-version-min=10.4 -triple=x86_64-apple-darwin %s
index aea96cf8651e3825442a05bc2da8926977122cba..4078331e26bbb855fb68ccedea8a52c94933a1f6 100644 (file)
@@ -911,15 +911,6 @@ static void HandleMacOSVersionMin(llvm::Triple &Triple) {
   }
   
   unsigned VersionNum = MacOSVersionMin[3]-'0';
-
-  if (VersionNum <= 4 && Triple.getArch() == llvm::Triple::x86_64) {
-    fprintf(stderr,
-            "-mmacosx-version-min=%s is invalid with -arch x86_64.\n",
-            MacOSVersionMin.c_str());
-    exit(1);
-  }
-
-  
   llvm::SmallString<16> NewDarwinString;
   NewDarwinString += "darwin";