[test-suite] r265552 - Recognize *-*-macosx* as Darwin
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 09:17:12 PDT 2016
Author: anemet
Date: Wed Apr 6 11:17:12 2016
New Revision: 265552
URL: http://llvm.org/viewvc/llvm-project?rev=265552&view=rev
Log:
Recognize *-*-macosx* as Darwin
After r256038, we pass --target to configure from LNT. LNT detects the
OS based on the target triple rather than uname for LLVM-based compilers
in lnt/testing/util/compilers.py. This is macosx for us.
As a consequence, we didn't set TARGET_OS to Darwin in the testsuite
because the code only checked *-*-darwin until this change. This led to
various testsuite failures. E.g. SingleSource/UnitTests/2007-04-25-weak
was run which is normally disabled for Darwin.
rdar://problem/25565911
Approved by Chris in the radar.
Modified:
test-suite/trunk/autoconf/configure.ac
test-suite/trunk/configure
Modified: test-suite/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/autoconf/configure.ac?rev=265552&r1=265551&r2=265552&view=diff
==============================================================================
--- test-suite/trunk/autoconf/configure.ac (original)
+++ test-suite/trunk/autoconf/configure.ac Wed Apr 6 11:17:12 2016
@@ -69,7 +69,7 @@ AC_CACHE_CHECK([type of operating system
llvm_cv_target_os_type="IRIX" ;;
*-*-cygwin*)
llvm_cv_target_os_type="Cygwin" ;;
- *-*-darwin*)
+ *-*-darwin* | *-*-macosx*)
llvm_cv_target_os_type="Darwin" ;;
*-*-minix*)
llvm_cv_target_os_type="Minix" ;;
Modified: test-suite/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/configure?rev=265552&r1=265551&r2=265552&view=diff
==============================================================================
--- test-suite/trunk/configure (original)
+++ test-suite/trunk/configure Wed Apr 6 11:17:12 2016
@@ -2252,7 +2252,7 @@ else
llvm_cv_target_os_type="IRIX" ;;
*-*-cygwin*)
llvm_cv_target_os_type="Cygwin" ;;
- *-*-darwin*)
+ *-*-darwin* | *-*-macosx*)
llvm_cv_target_os_type="Darwin" ;;
*-*-minix*)
llvm_cv_target_os_type="Minix" ;;
More information about the llvm-commits
mailing list