-
Notifications
You must be signed in to change notification settings - Fork 196
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
Introduce -emit-api-descriptor-path option #1460
Introduce -emit-api-descriptor-path option #1460
Conversation
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.
LGTM
let jobs = try driver.planBuild().removingAutolinkExtractJobs() | ||
let compileJob = try XCTUnwrap(jobs.first(where: {$0.kind == .compile})) | ||
|
||
let supplementaryOutputs = try XCTUnwrap(compileJob.commandLine.supplementaryOutputFilemap) |
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.
does this always use file map file?
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.
Apparently so with enough input files. This is the logic that determines whether or not an output file map will be used:
if inputsGeneratingCodeCount * FileType.allCases.count > fileListThreshold {
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.
Right, my question is if you just pass the option to set threshold to 0?
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.
Ah, yeah I could do that.
7e7543b
to
ca0a910
Compare
@swift-ci please test |
@swift-ci please test Windows |
This option and its argument, when specified on the driver command line, should be passed through to jobs that emit modules and have access to the whole module. Resolves rdar://116538520
ca0a910
to
bab5b4c
Compare
In the latest change I've also updated all the existing tests to use the new utility for extracting the supplementary file map from the command line. |
@swift-ci test |
@swift-ci test Windows |
1 similar comment
@swift-ci test Windows |
This option and its argument, when specified on the driver command line, should be passed through to jobs that emit modules and have access to the whole module.
Resolves rdar://116538520