File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -466,8 +466,7 @@ function(add_swift_host_library name)
466
466
SHARED
467
467
STATIC
468
468
OBJECT
469
- PURE_SWIFT
470
- HAS_LIBSWIFT)
469
+ PURE_SWIFT)
471
470
set(single_parameter_options)
472
471
set(multiple_parameter_options
473
472
LLVM_LINK_COMPONENTS)
@@ -520,12 +519,6 @@ function(add_swift_host_library name)
520
519
521
520
add_library(${name} ${libkind} ${ASHL_SOURCES} )
522
521
523
- if (ASHL_HAS_LIBSWIFT AND LIBSWIFT_BUILD_MODE)
524
- # Workaround for a linker crash related to autolinking: rdar://77839981
525
- set_property(TARGET ${name} APPEND_STRING PROPERTY
526
- LINK_FLAGS " -lobjc ")
527
- endif()
528
-
529
522
# Respect LLVM_COMMON_DEPENDS if it is set.
530
523
#
531
524
# LLVM_COMMON_DEPENDS if a global variable set in ./lib that provides targets
Original file line number Diff line number Diff line change @@ -6,8 +6,13 @@ set(LLVM_EXPORTED_SYMBOL_FILE
6
6
7
7
add_swift_host_library (libSwiftScan SHARED
8
8
libSwiftScan.cpp
9
- c-include-check.c
10
- HAS_LIBSWIFT )
9
+ c-include-check.c )
10
+
11
+ if (${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_DARWIN_PLATFORMS )
12
+ # Workaround for a linker crash related to autolinking: rdar://77839981
13
+ set_property (TARGET libSwiftScan APPEND_STRING PROPERTY
14
+ LINK_FLAGS " -lobjc " )
15
+ endif ()
11
16
12
17
add_dependencies (libSwiftScan
13
18
clang
You can’t perform that action at this time.
0 commit comments