Skip to content

[6.0][PackageModel] Toolchain: Split SwiftTesting flags between swift compiler and linker #7907

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Aug 22, 2024

@xedin xedin requested a review from bnbarham August 22, 2024 07:34
@xedin xedin requested a review from a team as a code owner August 22, 2024 07:34
@xedin
Copy link
Contributor Author

xedin commented Aug 22, 2024

@swift-ci please test

swiftlang#7903)

…iler and linker

Keeping them together broke Symbol Graph Extract tool because it cannot
handle `-Xlinker` flags.

- Adjust `deriveMacOSSpecificSwiftTestingFlags` to produce two arrays -
one for swift compiler and one for linker flags.

`extraFlags.swiftCompilerFlags` no longer includes `-Xlinker` flags.

(cherry picked from commit 84ba94a)
@xedin xedin force-pushed the dont-include-testing-linker-flags-into-swift-flags-6.0 branch from f6e0976 to 01e29be Compare August 22, 2024 07:37
@xedin
Copy link
Contributor Author

xedin commented Aug 22, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Aug 22, 2024

@swift-ci please test Windows platform

@xedin xedin merged commit 22b41d0 into swiftlang:release/6.0 Aug 22, 2024
5 checks passed
xedin added a commit to xedin/swift-package-manager that referenced this pull request Aug 23, 2024
… compiler and linker (swiftlang#7907)

- Explanation:

Fixes a bug where keeping them together broke Symbol Graph Extract tool
because it cannot handle `-Xlinker` flags.

- Main Branch PR:
swiftlang#7903

- Resolves: rdar://134406349

- Risk: Low (This is technically an NFC since it only re-arranging how
to the flags are propagated but doesn't change them).

- Reviewed By: @MaxDesiatov

- Testing: New tests were added to the test suite.

(cherry picked from commit 22b41d0)
xedin added a commit that referenced this pull request Aug 24, 2024
…ft… (#7908)

… compiler and linker

- Explanation:

Fixes a bug where keeping them together broke Symbol Graph Extract tool
because it cannot handle `-Xlinker` flags.

- Main Branch PR:
#7903
- 6.0 Branch PR:
#7907

- Resolves: rdar://134406349

- Risk: Low (This is technically an NFC since it only re-arranging how
to the flags are propagated but doesn't change them).

- Reviewed By: @MaxDesiatov

- Testing: New tests were added to the test suite.

(cherry picked from commit 22b41d0)
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.

2 participants