[PATCH] D133273: [compiler-rt][macOS]: Fix building compiler-rt without iOS related SDKs

Tobias Hieta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 13:04:28 PST 2023


thieta marked an inline comment as done.
thieta added inline comments.


================
Comment at: compiler-rt/cmake/base-config-ix.cmake:156
+  if("${HAS_IOS_SDK}" STREQUAL "")
+    set(COMPILER_RT_ENABLE_IOS_DEFAULT Off)
+  endif()
----------------
thetruestblue wrote:
> Nit: I'm wondering if there is any concern about this being a silent failure if there is no iOS SDK unexpectedly, as now we explicitly need to set COMPILER_RT_ENABLE_IOS=ON to catch a missing iOS SDK. Which is a change of behavior, correct?
> 
> Is it worth adding a compiler message or warning similar to the messages printed when looking for macosx sdk above to call out the change in what was previously "default".
> 
> message(WARNING "No iOS SDK found. Building for iOS not enabled.")
> 
> Seems like an inconvenient warning in the the small subset of cases where there is no iOS SDK, but could save a headache if there's an unexpectedly missing SDK.
Seems like a warning might be good here. I'll add one.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133273/new/

https://reviews.llvm.org/D133273



More information about the llvm-commits mailing list