-
Notifications
You must be signed in to change notification settings - Fork 10.6k
build: adjust the build to support non-Apple environments #68258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -161,6 +161,9 @@ function(add_sourcekit_swift_runtime_link_flags target path HAS_SWIFT_MODULES) | |
| # Add rpath to the host Swift libraries. | ||
| file(RELATIVE_PATH relative_hostlib_path "${path}" "${SWIFTLIB_DIR}/host") | ||
| list(APPEND RPATH_LIST "$ORIGIN/${relative_hostlib_path}") | ||
| else() | ||
|
||
| target_link_directories(${target} PRIVATE | ||
| ${SWIFT_PATH_TO_SWIFT_SDK}/usr/lib/swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}/${SWIFT_HOST_VARIANT_ARCH}) | ||
| endif() | ||
|
|
||
| # For the "end step" of bootstrapping configurations on Darwin, need to be | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,8 @@ | |
| # parser is built in. | ||
| function(add_swift_parser_link_libraries target) | ||
|
||
| if(SWIFT_SWIFT_PARSER) | ||
| target_link_directories(${target} PRIVATE | ||
| ${SWIFT_PATH_TO_SWIFT_SDK}/usr/lib/swift/${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}/${SWIFT_HOST_VARIANT_ARCH}) | ||
| target_link_libraries(${target} | ||
| PRIVATE swiftCore) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
elseif(CMAKE_SYSTEM_NAME MATCHES Windows)?