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)
151151 else ()
152152 message (FATAL_ERROR "Unknown ASKD_BOOTSTRAPPING_MODE '${ASKD_BOOTSTRAPPING_MODE} '" )
153153 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 ()
162154
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.
165157 file (RELATIVE_PATH relative_hostlib_path "${path} " "${SWIFTLIB_DIR} /host" )
166158 list (APPEND RPATH_LIST "$ORIGIN/${relative_hostlib_path} " )
167159 endif ()
160+ endif ()
168161
162+ if (SWIFT_SWIFT_PARSER)
169163 # For the "end step" of bootstrapping configurations on Darwin, need to be
170164 # able to fall back to the SDK directory for libswiftCore et al.
171165 if (BOOTSTRAPPING_MODE MATCHES "BOOTSTRAPPING.*" )
You can’t perform that action at this time.
0 commit comments