Skip to content

Export BAZEL_GENFILES_DIR and BAZEL_BIN_DIR at compilation. - #82

Closed
SirVer wants to merge 1 commit into
bazelbuild:masterfrom
SirVer:00_expose_env
Closed

SirVer wants to merge 1 commit into
bazelbuild:masterfrom
SirVer:00_expose_env

Conversation

@SirVer

@SirVer SirVer commented Apr 4, 2018

Copy link
Copy Markdown

Fixes #79.

@acmcarther

Copy link
Copy Markdown
Collaborator

This is really appealing as a solution, but I'm afraid of unilaterally LGTMing it because it would be very hard to undo later.

Let me see if I can get @mhlopko for a one off analysis (this should be bitesized enough that he can look at it soonish).

@SirVer

SirVer commented Apr 17, 2018

Copy link
Copy Markdown
Author

Closing this as we agree that it is not the right approach.

@SirVer SirVer closed this Apr 17, 2018
walter-zeromatter pushed a commit to ZeromatterOSS/rules_rust that referenced this pull request Nov 6, 2026
… `cc_common.link` (bazelbuild#82)

Keep `.a` files out of the unified dependency directory of the Windows process wrapper.

On Windows, `process_wrapper` merges every `-Ldependency=` directory into one, to keep the command line short. It scans each directory with `read_dir`, so it also sees files that are no input of the action. `rules_rust` puts a `lib<name>.a` symlink next to each rlib, for `cc_common.link`. With `experimental_use_cc_common_link`, Bazel builds those symlinks while sibling `Rustc` actions scan the directory, and the copy fails with "Access is denied".

`-L dependency=` only searches for crates, and no crate is a `.a` file, so skip the extension.

Relates to hermeticbuild#48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants