Skip to content
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

Add -file-prefix-map option #78

Merged
merged 1 commit into from
Feb 13, 2023
Merged

Conversation

brentleyjones
Copy link
Contributor

The -file-prefix-map option allows setting the PathRemapper mappings the same way that clang does. We now also use the PathRemapper in getUnitPathForOutputFile the same as as IndexUnitWriter.

This change is needed to allow the use of both the swift.use_global_index_store and swift.file_prefix_map rules_swift features.

The `-file-prefix-map` option allows setting the `PathRemapper` mappings the same way that `clang` does. We now also use the `PathRemapper` in `getUnitPathForOutputFile` the same as as `IndexUnitWriter`.

This change is needed to allow the use of both the `swift.use_global_index_store` and `swift.file_prefix_map` rules_swift features.

Signed-off-by: Brentley Jones <github@brentleyjones.com>
@brentleyjones brentleyjones merged commit ed095ad into main Feb 13, 2023
@brentleyjones brentleyjones deleted the bj/add-file-prefix-map-option branch February 13, 2023 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants