File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 32
32
33
33
module (
34
34
name = "googletest" ,
35
- version = "1.15.0 " ,
35
+ version = "1.15.1 " ,
36
36
compatibility_level = 1 ,
37
37
)
38
38
@@ -51,11 +51,19 @@ bazel_dep(name = "re2",
51
51
version = "2024-07-02" )
52
52
53
53
bazel_dep (name = "rules_python" ,
54
- version = "0.29.0" )
54
+ version = "0.34.0" ,
55
+ dev_dependency = True )
55
56
57
+ # https://rules-python.readthedocs.io/en/stable/toolchains.html#library-modules-with-dev-only-python-usage
58
+ python = use_extension (
59
+ "@rules_python//python/extensions:python.bzl" ,
60
+ "python" ,
61
+ dev_dependency = True
62
+ )
63
+
64
+ python .toolchain (python_version = "3.12" ,
65
+ is_default = True ,
66
+ ignore_root_user_error = True )
56
67
57
68
fake_fuchsia_sdk = use_repo_rule ("//:fake_fuchsia_sdk.bzl" , "fake_fuchsia_sdk" )
58
69
fake_fuchsia_sdk (name = "fuchsia_sdk" )
59
-
60
- # https://github.com/bazelbuild/rules_python/blob/main/BZLMOD_SUPPORT.md#default-toolchain-is-not-the-local-system-python
61
- register_toolchains ("@bazel_tools//tools/python:autodetecting_toolchain" )
Original file line number Diff line number Diff line change @@ -46,8 +46,13 @@ RMDIR /S /Q cmake_msvc2022
46
46
:: ----------------------------------------------------------------------------
47
47
:: Bazel
48
48
49
+ :: The default home directory on Kokoro is a long path which causes errors
50
+ :: because of Windows limitations on path length.
51
+ :: --output_user_root=C:\tmp causes Bazel to use a shorter path.
49
52
SET BAZEL_VS = C:\Program Files\Microsoft Visual Studio\2022\Community
50
- %BAZEL_EXE% test ... ^
53
+ %BAZEL_EXE% ^
54
+ --output_user_root=C:\tmp ^
55
+ test ... ^
51
56
--compilation_mode=dbg ^
52
57
--copt=/std:c++14 ^
53
58
--copt=/WX ^
You can’t perform that action at this time.
0 commit comments