From 01dbd5518a17a3bf4db74db9a790485edc6cdf79 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Tue, 22 Mar 2022 15:35:30 -0400 Subject: [PATCH] [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. --- cmake/Modules/HandleCompilerRT.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")