@@ -23,6 +23,10 @@ build --define absl=1
2323# Fix the python version
2424build --@rules_python//python/config_settings:python_version=3.12
2525
26+ # Fix the Java version
27+ build --java_language_version=21 # Version of the source files
28+ build --java_runtime_version=remotejdk_21 # Hermetic JRE
29+
2630###############################################################################
2731# Per plaform options
2832###############################################################################
@@ -34,7 +38,7 @@ build --enable_platform_specific_config
3438# Options for Linux.
3539###############################################################################
3640
37- build:linux --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
41+ build:linux --cxxopt=-std=c++20 --host_cxxopt=-std=c++20
3842build:linux --cxxopt=-Wno-sign-compare --host_cxxopt=-Wno-sign-compare
3943build:linux --cxxopt=-Wno-range-loop-construct --host_cxxopt=-Wno-range-loop-construct
4044
@@ -45,7 +49,7 @@ build:linux --cxxopt=-Wno-range-loop-construct --host_cxxopt=-Wno-range-loop-con
4549# Sets the default Apple platform to macOS.
4650build --apple_platform_type=macos
4751build:macos --features=-supports_dynamic_linker
48- build:macos --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
52+ build:macos --cxxopt=-std=c++20 --host_cxxopt=-std=c++20
4953build:macos --cxxopt=-Wno-sign-compare --host_cxxopt=-Wno-sign-compare
5054build:macos --cxxopt=-Wno-dangling-field --host_cxxopt=-Wno-dangling-field
5155build:macos --cxxopt=-Wno-range-loop-construct --host_cxxopt=-Wno-range-loop-construct
@@ -56,6 +60,8 @@ build:macos --cxxopt=-mmacos-version-min=10.15 --host_cxxopt=-mmacos-version-min
5660###############################################################################
5761
5862build:windows --cxxopt=/std:c++20 --host_cxxopt=/std:c++20
63+ # Enable preprocessor conformance mode needed to correctly support __VA_OPT__
64+ build:windows --cxxopt=/Zc:preprocessor --host_cxxopt=/Zc:preprocessor
5965
6066# Enable the runfiles symlink tree on Windows. This makes it possible to build
6167# the pip package on Windows without an intermediate data-file archive, as the
0 commit comments