Skip to content

Commit 2003a1a

Browse files
committed
Fix builds
1 parent b012692 commit 2003a1a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/CompilerSwiftSyntax/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ add_pure_swift_host_library(swiftSyntaxUnified SHARED)
3030

3131
macro(target_link_libraries_whole_archive target)
3232
set_property(TARGET ${target} PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
33-
target_link_options(${target} PRIVATE "SHELL: -Xfrontend -disable-autolink-library -Xfrontend ${target}")
3433

3534
set(link_files)
3635
foreach(lib ${ARGN})
3736
force_add_dependencies(${target} ${lib})
3837

39-
# Set auto linking name to the unified shared library name for each module.
40-
target_compile_options(${lib} PRIVATE "SHELL:-module-link-name ${target}")
38+
# Set dummy auto linking name to avoid trying to link with indivisual library.
39+
target_compile_options(${lib} PRIVATE "SHELL:-module-link-name swiftCore")
4140

4241
# Link all the object file into one unified library.
4342
list(APPEND link_files $<TARGET_OBJECTS:${lib}>)

0 commit comments

Comments
 (0)