File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -294,6 +294,11 @@ elseif(SWIFT_PRIMARY_VARIANT_SDK STREQUAL "WINDOWS")
294
294
list (APPEND swift_core_private_link_libraries shell32;DbgHelp;Synchronization )
295
295
endif ()
296
296
297
+ # There is a race condition with building the 'tools' CMake build of the compiler,
298
+ # which produces libSwiftScan that the compiler building the standard library may attempt to use.
299
+ # Since the current build system makes establishing this dependency relationship exceedingly difficult,
300
+ # we attempt to work around it by disabling use of 'libSwiftScan' here.
301
+ list (APPEND swift_stdlib_compile_flags "-nonlib-dependency-scanner" )
297
302
if (NOT "${CMAKE_BUILD_TYPE} " STREQUAL "MinSizeRel" )
298
303
list (APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-inline-generics" )
299
304
list (APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-partial-specialization" )
@@ -439,7 +444,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
439
444
GYB_SOURCES ${SWIFTLIB_EMBEDDED_GYB_SOURCES}
440
445
SWIFT_COMPILE_FLAGS
441
446
${swift_stdlib_compile_flags} -Xcc -D__MACH__ -Xcc -D__APPLE__ -Xcc -ffreestanding -enable-experimental-feature Embedded
442
- -Xfrontend -enable-ossa-modules
447
+ -Xfrontend -enable-ossa-modules -nonlib-dependency-scanner
443
448
MODULE_DIR "${CMAKE_BINARY_DIR} /lib/swift/embedded"
444
449
SDK "embedded"
445
450
ARCHITECTURE "${arch} "
You can’t perform that action at this time.
0 commit comments