bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Normalize C++ action config tool paths based on exec platform OS

Open fmeum opened this issue 1 year ago • 3 comments

Work towards #19208

RELNOTES: Tool paths specified in cc_toolchain action configs are now normalized based on the current execution platform's OS rather than the host OS. In particular, Windows-style absolute paths are now treated as absolute paths when building on a Windows executor from a non-Windows host.

fmeum avatar May 02 '24 09:05 fmeum

@lberki I implemented the solution you mentioned as your favorite one in https://github.com/bazelbuild/bazel/issues/19208#issuecomment-1689609485.

fmeum avatar May 02 '24 13:05 fmeum

As a follow-up, I would also use this new logic in HeaderDiscovery.

CC @sluongng

fmeum avatar May 02 '24 13:05 fmeum

@lberki Gentle ping

fmeum avatar May 29 '24 06:05 fmeum

This looks stalled. What's the next action? Do you need my review?

cc @lberki @fmeum

comius avatar Sep 25 '24 12:09 comius

@comius I have mostly given up on this for now. There are too many callers of PathFragment methods that make properly dealing with invalid paths almost impossible. I will wait for C++ Starlarkification to progress before I revisit this.

fmeum avatar Sep 25 '24 12:09 fmeum