-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[PackageModel] Toolchain: Split SwiftTesting flags between swift comp… #7903
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] Toolchain: Split SwiftTesting flags between swift comp… #7903
Conversation
3fe6e6d
to
5287c93
Compare
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.
I know little about this area of code, but how testable is this?
That's what I'm trying to figure out right now :) |
…iler and linker Keeping them together broke Symbol Graph Extract tool because it cannot handle `-Xlinker` flags.
5287c93
to
c22a8f3
Compare
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.
Thanks 👍
@swift-ci please test |
@swift-ci please test Windows platform |
"-Xlinker", frameworksPath.pathString | ||
] | ||
return (swiftCFlags: [ | ||
"-F", frameworksPath.pathString |
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.
Is this framework search path not also needed for the linker?
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.
This appears to be sufficient, I tested with commandline tools only and -F + -Xlinker -rpath
builds and runs the swift-testing tests without issues.
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)
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)
… compiler and linker (#7907) - Explanation: Fixes a bug where keeping them together broke Symbol Graph Extract tool because it cannot handle `-Xlinker` flags. - Main Branch PR: #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.
… 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)
…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)
…iler and linker
Motivation:
Keeping them together broke Symbol Graph Extract tool because it cannot handle
-Xlinker
flags.Modifications:
deriveMacOSSpecificSwiftTestingFlags
to produce two arrays - one for swift compiler and one for linker flags.Result:
extraFlags.swiftCompilerFlags
no longer includes-Xlinker
flags.