Skip to content

Commit 6aabbb1

Browse files
authored
Merge pull request #77621 from swiftlang/revert-77601-DisableLibSwiftScanOnStdLib
2 parents 201edb8 + 9cd6898 commit 6aabbb1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

stdlib/public/core/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,6 @@ elseif(SWIFT_PRIMARY_VARIANT_SDK STREQUAL "WINDOWS")
300300
list(APPEND swift_core_private_link_libraries shell32;DbgHelp;Synchronization)
301301
endif()
302302

303-
# There is a race condition with building the 'tools' CMake build of the compiler,
304-
# which produces libSwiftScan that the compiler building the standard library may attempt to use.
305-
# Since the current build system makes establishing this dependency relationship exceedingly difficult,
306-
# we attempt to work around it by disabling use of 'libSwiftScan' here.
307-
list(APPEND swift_stdlib_compile_flags "-nonlib-dependency-scanner")
308303
if(NOT "${CMAKE_BUILD_TYPE}" STREQUAL "MinSizeRel")
309304
list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-inline-generics")
310305
list(APPEND swift_stdlib_compile_flags "-Xllvm" "-sil-partial-specialization")
@@ -457,7 +452,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
457452
GYB_SOURCES ${SWIFTLIB_EMBEDDED_GYB_SOURCES}
458453
SWIFT_COMPILE_FLAGS
459454
${swift_stdlib_compile_flags} -Xcc -D__MACH__ -Xcc -D__APPLE__ -Xcc -ffreestanding -enable-experimental-feature Embedded
460-
-Xfrontend -enable-ossa-modules -nonlib-dependency-scanner
455+
-Xfrontend -enable-ossa-modules
461456
MODULE_DIR "${CMAKE_BINARY_DIR}/lib/swift/embedded"
462457
SDK "embedded"
463458
ARCHITECTURE "${arch}"

0 commit comments

Comments
 (0)