summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2022-03-22 15:35:30 -0400
committerLouis Dionne <ldionne.2@gmail.com>2022-03-22 15:36:47 -0400
commit01dbd5518a17a3bf4db74db9a790485edc6cdf79 (patch)
tree28a5fd74c03b63482f0d29ca95bf872d3fc766e3 /cmake
parent129504014a94e08c7f7353d434d286164f106e1e (diff)
downloadllvm-01dbd5518a17a3bf4db74db9a790485edc6cdf79.tar.gz
[cmake] Demote fatal error to a warning when we don't know the Apple SDK in use
Sometimes, we could be building for a platform where we don't link compiler-rt, so being able to figure out the right compiler-rt suffix isn't necessary, but we shouldn't fail the build.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/HandleCompilerRT.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/HandleCompilerRT.cmake b/cmake/Modules/HandleCompilerRT.cmake
index a55984c67e1c..6865f45175ed 100644
--- a/cmake/Modules/HandleCompilerRT.cmake
+++ b/cmake/Modules/HandleCompilerRT.cmake
@@ -38,7 +38,7 @@ function(get_component_name name variable)
elseif (CMAKE_OSX_SYSROOT MATCHES ".+WatchSimulator.+")
set(component_name "${component_name}watchossim")
else()
- message(FATAL_ERROR "Unknown Apple SDK ${CMAKE_OSX_SYSROOT}, we don't know which compiler-rt library suffix to use.")
+ message(WARNING "Unknown Apple SDK ${CMAKE_OSX_SYSROOT}, we don't know which compiler-rt library suffix to use.")
endif()
else()
set(component_name "${name}")