-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Driver][Index] Add driver support to specify an overriding output path to record in the index data #36272
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
[Driver][Index] Add driver support to specify an overriding output path to record in the index data #36272
Conversation
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
c3c3ad4
to
a669ab2
Compare
@swift-ci please test |
a669ab2
to
a39ec56
Compare
@swift-ci please test |
a39ec56
to
701bca4
Compare
@swift-ci please test |
@swift-ci please test Windows |
1 similar comment
@swift-ci please test Windows |
701bca4
to
348a2be
Compare
@swift-ci please test |
Build failed |
@swift-ci please smoke test Linux |
…th to record in the index data The frontend supports this via new options -index-unit-output-path and -index-unit-output-path-filelist that mirror -o and -output-filelist. These are intended to allow sharing index data across builds in separate directories (so different -o values) that are otherwise equivalent as far as the index data is concerned (e.g. an ASAN build and a non-ASAN build) by supplying the same -index-unit-output-path for both. This change updates the driver to add these new options to the frontend invocation 1) when a new "index-unit-output-path" entry is specified for one or more input files in the -output-file-map json or 2) if -index-file is specified, when a new -index-unit-output-path driver option is passed. Resolves rdar://problem/74816412
348a2be
to
117f03b
Compare
@swift-ci please test and merge |
The frontend supports this via new options -index-unit-output-path and -index-unit-output-path-filelist that mirror -o and -output-filelist. These are intended to allow sharing index data across builds in separate directories (so different -o values) that are otherwise equivalent as far as the index data is concerned (e.g. an ASAN build and a non-ASAN build) by supplying the same -index-unit-output-path for both.
This change updates the driver to add these new options to the frontend invocation 1) when a new "index-unit-output-path" entry is specified for one or more input files in the -output-file-map json or 2) when -index-file is specified (guaranteeing a single primary input) and a new -index-unit-output-path driver option is passed.
Equivalent change for the new driver here: swiftlang/swift-driver#516
Resolves rdar://problem/74816412