diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2022-03-22 15:35:30 -0400 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2022-03-22 15:36:47 -0400 |
commit | 01dbd5518a17a3bf4db74db9a790485edc6cdf79 (patch) | |
tree | 28a5fd74c03b63482f0d29ca95bf872d3fc766e3 /cmake | |
parent | 129504014a94e08c7f7353d434d286164f106e1e (diff) | |
download | llvm-01dbd5518a17a3bf4db74db9a790485edc6cdf79.zip llvm-01dbd5518a17a3bf4db74db9a790485edc6cdf79.tar.gz llvm-01dbd5518a17a3bf4db74db9a790485edc6cdf79.tar.bz2 |
[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.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/HandleCompilerRT.cmake b/cmake/Modules/HandleCompilerRT.cmake index a55984c..6865f45 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}") |