-
Notifications
You must be signed in to change notification settings - Fork 199
Schedule an emit-module-separately job even if an input is not compilable #1588
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
…able The following invocation should schedule an emit-module-separately job for src.swift and include other.dylib in the link job. ``` swiftc -emit-library src.swift other.dylib ``` rdar://127238278
@swift-ci Please test |
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.
Thank you.
|
||
let emitJob = try plannedJobs.findJob(.emitModule) | ||
XCTAssertTrue(emitJob.commandLine.contains(try toPathOption("foo.swift"))) | ||
XCTAssertFalse(emitJob.commandLine.contains(try toPathOption("bar.dylib"))) |
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.
Why is the dylib an input to the emit module job at all? This seems dangerously close to the behavior of the old driver, which would sometimes pass static archives to the frontend which ends in much sadness.
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 can imagine it being bad, but I think this is fine. Did you notice the XCTAssertFalse
for bar.dylib
?
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.
Oh, no, sorry, misread it as XCTAssertTrue
, which concerned me. You're good, carry on.
Fixes the failure in testDependencyScanningPathRemap.
@swift-ci Please test |
@swift-ci Please test |
@swift-ci Please test Windows |
The following invocation should schedule an emit-module-separately job for src.swift and include other.dylib in the link job.
rdar://127238278