Skip to content

Commit 5ec41ad

Browse files
committed
[embedded] Use -ffreestanding when building Unicode data tables library even on Linux
1 parent 20f1040 commit 5ec41ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/stubs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
6565
endif()
6666

6767
if (SWIFT_HOST_VARIANT STREQUAL "linux")
68-
set(extra_c_compile_flags)
68+
set(extra_c_compile_flags -ffreestanding)
6969
elseif (SWIFT_HOST_VARIANT STREQUAL "macosx")
7070
set(extra_c_compile_flags -D__MACH__ -D__APPLE__ -ffreestanding)
7171
endif()

0 commit comments

Comments
 (0)