[cfe-commits] r68819 - /cfe/trunk/tools/clang-cc/clang-cc.cpp
Fariborz Jahanian
fjahanian at apple.com
Fri Apr 10 13:33:45 PDT 2009
Author: fjahanian
Date: Fri Apr 10 15:33:45 2009
New Revision: 68819
URL: http://llvm.org/viewvc/llvm-project?rev=68819&view=rev
Log:
Reject compiles for x86_64 target for MacOS versions which
do not support it.
Modified:
cfe/trunk/tools/clang-cc/clang-cc.cpp
Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=68819&r1=68818&r2=68819&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Fri Apr 10 15:33:45 2009
@@ -908,6 +908,14 @@
MacOSVersionMin.c_str());
exit(1);
}
+ else if (VersionNum <= 4 &&
+ !strncmp(Triple.c_str(), "x86_64", strlen("x86_64"))) {
+ fprintf(stderr,
+ "-mmacosx-version-min=%s is invalid with -arch x86_64.\n",
+ MacOSVersionMin.c_str());
+ exit(1);
+ }
+
}
static llvm::cl::opt<std::string>
More information about the cfe-commits
mailing list