diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2015-07-24 22:01:07 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2015-07-24 22:01:07 +0000 |
commit | e28867101e3ed253ec920c63b6e7d3a8dc2e52c7 (patch) | |
tree | e9194eef9ac0a8644f5df4234f3e14187f312b69 /cmake | |
parent | 019bd5d06c70093a5e7a989d75d5a92d5b66ec7c (diff) |
[CMake] Workaround for PR24222: don't fail if we can't target COMPILER_RT_TEST_TARGET_TRIPLE unless it was explicitly set.
Summary:
Although we assume that we can always target host triple, relax
this check to avoid failing at configure-time for cases when we are
not able to correctly infer/verify host triple for some reasons.
See http://llvm.org/bugs/show_bug.cgi?id=24222 for more details.
Reviewers: hans
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D11496
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@243170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config-ix.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index c308ccbc2..b5f8f596b 100644 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -121,7 +121,8 @@ macro(test_target_arch arch def) endif() if(${CAN_TARGET_${arch}}) list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch}) - elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "${arch}") + elseif("${COMPILER_RT_TEST_TARGET_ARCH}" MATCHES "${arch}" AND + COMPILER_RT_HAS_EXPLICIT_TEST_TARGET_TRIPLE) # Bail out if we cannot target the architecture we plan to test. message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}") endif() |