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
Suppress redundant linkage warnings due to dependency linkage propagation #7404
Changes from 14 commits
60ee80d
c6da47b
ef5ce43
1a9d270
20ae44e
1169440
a99e152
53fbf70
a1aa166
c8503f0
407a003
1f7173d
3eca47a
6f81983
f7e6759
8c16a1b
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 |
---|---|---|
|
@@ -25,7 +25,7 @@ final class BuildSystemDelegateTests: XCTestCase { | |
try XCTSkipIf(true, "test is only supported on macOS") | ||
#endif | ||
let (fullLog, _) = try executeSwiftBuild(fixturePath) | ||
XCTAssertTrue(fullLog.contains("ld: warning: ignoring duplicate libraries: '-lz'"), "log didn't contain expected linker diagnostics") | ||
XCTAssertFalse(fullLog.contains("ld: warning: ignoring duplicate libraries: '-lz'"), "log contains unnecessary linker warnings") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it's correct to change this test, it was supposed to ensure that linker warnings are properly propagated. We'll need to find a different linker warning that we can check for here or remove the test if appropriate. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you @neonichu I will talk with @MaxDesiatov and finalize it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree with Boris, with this PR as it is we're losing test coverage here. This test needs to change to check for a different warning. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Talked with @MaxDesiatov and made changes appropriately for the above test case. |
||
} | ||
} | ||
|
||
|
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 think the
#if
is redundant here because this is essentially dead code on non-macOS today.