Skip to content

Commit 63b7f05

Browse files
authored
Merge pull request swiftlang#79443 from compnerd/hermermetic
Runtimes: add `-nostdlibimport` to the runtime build
2 parents 44ff7e5 + 53c70df commit 63b7f05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Runtimes/Core/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ add_compile_options(
172172
add_link_options($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
173173

174174
add_compile_options(
175+
"$<$<COMPILE_LANGUAGE:Swift>:-nostdlibimport>"
175176
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-library-level api>"
176177
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-runtime-compatibility-version none>"
177178
"$<$<COMPILE_LANGUAGE:Swift>:-disable-autolinking-runtime-compatibility-dynamic-replacements>"

0 commit comments

Comments
 (0)