Skip to content
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

[PackageModel] Inject swift-testing flags only if toolchain is target… #7920

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 26, 2024

…ting macOS

Motivation:

Fixes a bug where swift and linker flags for swift-testing were injected into extraFlags of a toolchain that was targeting WASM but used macOS to build.

Modifications:

  • Replace #if os(macOS) with if triple.isMacOSX while deriving swift-testing flags for a toolchain.

Result:

Resolves: #7919
Resolves: rdar://134714404

…ting macOS

Fixes a bug where swift and linker flags for swift-testing were
injected into `extraFlags` of a toolchain that was targeting WASM
but used macOS to build.

Resolves: swiftlang#7919
@xedin
Copy link
Contributor Author

xedin commented Aug 26, 2024

@swift-ci please test

xedin added a commit that referenced this pull request Aug 26, 2024
… target… (#7922)

- Explanation:

Fixes a bug where swift and linker flags for swift-testing were injected
into `extraFlags` of a toolchain that was targeting WASM but used macOS
to build.

- Main Branch PR:
#7920
- 6.0 Branch PR:
#7921

- Resolves:
#7919
- Resolves: rdar://134714404

- Risk: Low (only affects cross-compilation to WASM).

- Reviewed By: @bnbarham 

- Testing: Manual testing since this is not currently possible to test
automatically.
xedin added a commit that referenced this pull request Aug 26, 2024
…arget… (#7921)

- Explanation:

Fixes a bug where swift and linker flags for swift-testing were injected
into `extraFlags` of a toolchain that was targeting WASM but used macOS
to build.

- Main Branch PR:
#7920

- Resolves:
#7919
- Resolves: rdar://134714404

- Risk: Low (only affects cross-compilation to WASM).

- Reviewed By: @bnbarham 

- Testing: Manual testing since this is not currently possible to test
automatically.
@xedin xedin merged commit b755e1d into swiftlang:main Aug 26, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

swift build fails when targeting Wasm Swift SDK on macOS
4 participants