2025-05-15 09:47:29 -06:00
|
|
|
# Use Bzlmod (`MODULE.bazel`) instead of `WORKSPACE.bazel`.
|
|
|
|
|
common --enable_bzlmod
|
|
|
|
|
common --noenable_workspace
|
|
|
|
|
|
2025-06-03 02:51:18 -07:00
|
|
|
# Specifies...
|
|
|
|
|
# --config=windows on Windows hosts
|
|
|
|
|
# --config=linux on Linux hosts
|
|
|
|
|
# --config=macos on macOS hosts
|
|
|
|
|
# NOTE: We assume our host and target platforms are identical.
|
|
|
|
|
common --enable_platform_specific_config
|
|
|
|
|
|
2025-05-15 09:47:29 -06:00
|
|
|
# Use C++20.
|
|
|
|
|
build --cxxopt=-std=c++20
|
|
|
|
|
build --host_cxxopt=-std=c++20
|
|
|
|
|
|
|
|
|
|
# Use Clang.
|
|
|
|
|
build --action_env=CC=clang
|
|
|
|
|
build --action_env=CXX=clang++
|