Skip to content

[5.9] Swift SDKs: fix search paths handling #6740

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

Merged
merged 1 commit into from
Jul 21, 2023

Conversation

MaxDesiatov
Copy link
Contributor

Cherry-pick of #6608.

Fixed a bug where includeSearchPaths and librarySearchPaths defined in a swift-sdk.json file were not properly respected. Updates UserToolchain to support these by adding matching properties and updates SwiftTargetBuildDescription as well as ClangTargetBuildDescription to pass these toolchain search paths to the compilers and linkers as expected.

(cherry picked from commit 38c5c05)

# Conflicts:
#	Sources/Build/BuildDescription/ClangTargetBuildDescription.swift
#	Sources/Build/BuildDescription/SwiftTargetBuildDescription.swift

Fixed a bug where `includeSearchPaths` and `librarySearchPaths` defined in a `swift-sdk.json` file were not properly respected. Updates `UserToolchain` to support these by adding matching properties and updates `SwiftTargetBuildDescription` as well as `ClangTargetBuildDescription` to pass these toolchain search paths to  the compilers and linkers as expected.

(cherry picked from commit 38c5c05)

```
# Conflicts:
#	Sources/Build/BuildDescription/ClangTargetBuildDescription.swift
#	Sources/Build/BuildDescription/SwiftTargetBuildDescription.swift
```
@MaxDesiatov MaxDesiatov added swift 5.9 This PR targets the 5.9 branch cross-compilation labels Jul 21, 2023
@MaxDesiatov MaxDesiatov requested a review from rauhul July 21, 2023 09:07
@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test macos

@MaxDesiatov MaxDesiatov merged commit 630749a into release/5.9 Jul 21, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/5.9-fix-search-paths branch July 21, 2023 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cross-compilation swift 5.9 This PR targets the 5.9 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants