Skip to content

Commit 447b50d

Browse files
committed
runtimes: enable reflection by default on ELFish targets
We need reflection enabled as swift-collections uses this which is required for Foundation. Adjust the defaults to allow building Foundation for Android again.
1 parent 9a4ba6f commit 447b50d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Runtimes/Core/cmake/modules/DefaultSettings.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "WASM")
5050
set(SwiftCore_CONCURRENCY_GLOBAL_EXECUTOR_default "none")
5151
elseif(LINUX OR ANDROID OR BSD)
5252
set(SwiftCore_OBJECT_FORMAT_default "elf")
53+
54+
set(SwiftCore_ENABLE_REFLECTION_default ON)
5355
set(SwiftCore_ENABLE_FATALERROR_BACKTRACE_default ON)
5456
if(LINUX)
5557
set(SwiftCore_THREADING_PACKAGE_default "LINUX")

0 commit comments

Comments
 (0)