• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Until we have migrated all deps out of WORKSPACE file, we need to continue to use it.
2# Starting with bazel 8, this flag flips to default false.
3common --enable_workspace
4
5# Runfiles are needed by several tests. Typically these are defaulted on for
6# non-Windows platforms.
7build --enable_runfiles
8
9# Use the default C++ toolchain to build the tools used during the
10# build.
11build --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
12build --enable_platform_specific_config
13
14# Platform specific configuration.
15build:linux --linkopt=-lm
16build:linux --cxxopt=-std=c++20
17build:linux --cxxopt=-Wno-sign-compare
18
19build:macos --macos_minimum_os=12.0
20build:macos --linkopt=-lm
21build:macos --cxxopt=-std=c++20
22build:macos --cxxopt=-Wno-sign-compare
23
24build:windows --cxxopt=/std:c++20
25startup --windows_enable_symlinks
26