You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
platform/windows_x64: update container image and toolchain for wrapper (#244)
The Windows MSVC toolchain now invokes a wrapper binary when compiling
instead of cl.exe. The wrapper binary invokes cl.exe with all arguments
but filters /showincludes output, removing EngFlow execroot paths.
For example, the line:
Note: including file: C:\worker\work\2\exec\cpp\hello.h
is replaced with:
Note: including file: cpp\hello.h
This is a workaround for bazelbuild/bazel#19733. Bazel invokes the compiler
with /showincludes to dump all included headers in order to validate them.
It strips anything that looks like a local execroot directory followed by
the workspace name before performing that validation. EngFlow execroot
directories don't look like local execroot directories though. We also don't
know Bazel's workspace name, so we can't work around this issue on the
server side. Using a wrapper like this instead makes the CppCompile action
slightly more hermetic by filtering out those absolute paths.
For linear/CUS-81
We'll open source this wrapper tool in a follow-up.
Also: change line endings in cpp/main.cc to be LF instead of CRLF.
0 commit comments