File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
tools/SourceKit/cmake/modules Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -151,21 +151,15 @@ function(add_sourcekit_swift_runtime_link_flags target path HAS_SWIFT_MODULES)
151
151
else ()
152
152
message (FATAL_ERROR "Unknown ASKD_BOOTSTRAPPING_MODE '${ASKD_BOOTSTRAPPING_MODE} '" )
153
153
endif ()
154
- endif ()
155
-
156
- if (SWIFT_SWIFT_PARSER )
157
- # Add rpath to the host Swift libraries.
158
- if (NOT SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_DARWIN_PLATFORMS )
159
- file (RELATIVE_PATH relative_hostlib_path "${path} " "${SWIFTLIB_DIR} /host" )
160
- list (APPEND RPATH_LIST "$ORIGIN/${relative_hostlib_path} " )
161
- endif ()
162
154
163
- # Add rpath to the host Swift libraries.
164
- if ( NOT ${SWIFT_HOST_VARIANT_SDK} IN_LIST SWIFT_DARWIN_PLATFORMS )
155
+ if ( SWIFT_SWIFT_PARSER )
156
+ # Add rpath to the host Swift libraries.
165
157
file (RELATIVE_PATH relative_hostlib_path "${path} " "${SWIFTLIB_DIR} /host" )
166
158
list (APPEND RPATH_LIST "$ORIGIN/${relative_hostlib_path} " )
167
159
endif ()
160
+ endif ()
168
161
162
+ if (SWIFT_SWIFT_PARSER )
169
163
# For the "end step" of bootstrapping configurations on Darwin, need to be
170
164
# able to fall back to the SDK directory for libswiftCore et al.
171
165
if (BOOTSTRAPPING_MODE MATCHES "BOOTSTRAPPING.*" )
You can’t perform that action at this time.
0 commit comments