forked from bazel-contrib/rules_go
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Translate paths in compilepkg output.
When cgo2 is involved in a build, the go srcs are linked/copied into a temporary directory to keep everything in the same directory. Those paths are unrecognizable to IDEs, being absolute paths outside the project directory. This adds a translation step to replace paths in the compiler output, translating them back to the input paths that were given to the tool in the first place. This doesn't affect -trimpath, which affects runtime error messages but not compilation-time error messages; for the same reason, this change can't use that flag to do its dirty work. Fixes cockroachdb/cockroach#76377. Release note: None
- Loading branch information
Showing
3 changed files
with
61 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters