-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.bazelrc
More file actions
38 lines (30 loc) · 1.83 KB
/
Copy path.bazelrc
File metadata and controls
38 lines (30 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Enable platform-specific configuration.
# This allows Bazel to automatically pick up the `windows` config on Windows.
common --enable_platform_specific_config
# Disable automatic creation of `__init__.py` files, which prevent multiple
# workspaces from providing files with the same package prefix (e.g., "cel").
# See https://github.com/bazelbuild/rules_python/issues/330.
build --incompatible_default_to_explicit_init_py
# MSVC: Use the C++20 standard in order to support C++20 features that were introduced in clang and gcc
build:windows --copt="/std:c++20" --cxxopt="/std:c++20"
# MSVC: Corrects the __cplusplus macro to report the true standard
build:windows --copt="/Zc:__cplusplus" --cxxopt="/Zc:__cplusplus"
# MSVC: Enable modern standards-compatible preprocessor
build:windows --cxxopt="/Zc:preprocessor" --host_cxxopt="/Zc:preprocessor"
# MSVC: Link ANTLR statically to avoid Windows DLL linking errors
build:windows --cxxopt="-DANTLR4CPP_STATIC" --host_cxxopt="-DANTLR4CPP_STATIC"
# Downloader attempts and retries for BCR network stability (Windows-only)
common:windows --http_connector_attempts=10
common:windows --experimental_repository_downloader_retries=10
# Build verbosity and output options (Global)
build --verbose_failures
test --test_output=errors
# GCS remote caching config (Windows-only, active by default on Windows!)
build:windows --remote_cache=https://storage.googleapis.com/windows-cel-python-remote-cache
build:windows --google_default_credentials=true
# GCS remote caching config (macOS-only, active by default on macOS!)
build:macos --remote_cache=https://storage.googleapis.com/macos-cel-python-remote-cache
build:macos --google_default_credentials=true
# Silence deprecation warnings from external dependencies (Linux and macOS)
build:linux --cxxopt=-Wno-deprecated-declarations
build:macos --cxxopt=-Wno-deprecated-declarations