diff options
author | Derek Mauro <761129+derekmauro@users.noreply.github.com> | 2024-07-31 00:25:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-31 00:25:53 (GMT) |
commit | 075196ca060107d44b4e3a1f44b25886ed5bd187 (patch) | |
tree | b365b26ffc17617fd7371c6dc2cb32e4aeac99b2 /ci | |
parent | e39786088138f2749d64e9e90e0f9902daa77c40 (diff) | |
download | googletest-075196ca060107d44b4e3a1f44b25886ed5bd187.zip googletest-075196ca060107d44b4e3a1f44b25886ed5bd187.tar.gz googletest-075196ca060107d44b4e3a1f44b25886ed5bd187.tar.bz2 |
Remove auto-detection of Python toolchain from MODULE.bazel (#4582)v1.15.1
since it affects downstream users
The correct solution appears to be
https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-python-usage
This change also includes a workaround for the new mechanism creating
paths that are too long for Windows to handle.
Backport of 3e3b44c300b21eb996a2957782421bc0f157af18
Diffstat (limited to 'ci')
-rw-r--r-- | ci/windows-presubmit.bat | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ci/windows-presubmit.bat b/ci/windows-presubmit.bat index 9753f9c..1adc1a1 100644 --- a/ci/windows-presubmit.bat +++ b/ci/windows-presubmit.bat @@ -46,8 +46,13 @@ RMDIR /S /Q cmake_msvc2022 :: ---------------------------------------------------------------------------- :: Bazel +:: The default home directory on Kokoro is a long path which causes errors +:: because of Windows limitations on path length. +:: --output_user_root=C:\tmp causes Bazel to use a shorter path. SET BAZEL_VS=C:\Program Files\Microsoft Visual Studio\2022\Community -%BAZEL_EXE% test ... ^ +%BAZEL_EXE% ^ + --output_user_root=C:\tmp ^ + test ... ^ --compilation_mode=dbg ^ --copt=/std:c++14 ^ --copt=/WX ^ |