build --cxxopt=-std=c++17
build --workspace_status_command=./bazel/workspace_status.sh
build --cxxopt=-Wextra
build --cxxopt=-fsigned-char
build --cxxopt=-fno-common
build --linkopt=-rdynamic
build --cxxopt=-fPIC
build --cxxopt=-g3
build --cxxopt=-Wno-redundant-move

build --copt=-Wno-float-equal
build --copt=-Wno-unused-variable
build --copt=-Wno-unused-parameter
build --copt=-Wno-unused-function
build --copt=-Wno-missing-field-initializers
build --copt=-Wno-implicit-fallthrough

build:debug --cxxopt=-ggdb
build:debug --cxxopt=-O0
build:debug --cxxopt=-ftrapv
build:debug --cxxopt=-fstack-check
build:debug --cxxopt=-DDEBUG

build:release --cxxopt=-O2
build:release --cxxopt=-fstack-protector-strong
build:release --linkopt=-Wl,-z,relro
build:release --linkopt=-Wl,-z,now
build:release --linkopt=-Wl,-z,noexecstack
build:release --cxxopt=-D_FORTIFY_SOURCE=2
build:release --cxxopt=-DNDEBUG
build:release --linkopt=-Wl,--build-id=none
build:urma --define=enable_urma=true
build:urma --copt=-DUSE_URMA
build:urma --copt=-DURMA_OVER_UB

build:pipeline_h2d --config=urma
build:pipeline_h2d --define=enable_pipeline_h2d=true
build:pipeline_h2d --copt=-DBUILD_PIPLN_H2D

build:asan --cxxopt=-fsanitize=address
build:asan --cxxopt=-fno-omit-frame-pointer
build:asan --cxxopt=-g3
build:asan --linkopt=-fsanitize=address

build:tsan --cxxopt=-fsanitize=thread
build:tsan --cxxopt=-g3
build:tsan --linkopt=-fsanitize=thread

build:ubsan --cxxopt=-fsanitize=undefined
build:ubsan --cxxopt=-fno-sanitize=alignment
build:ubsan --cxxopt=-fsanitize=float-cast-overflow
build:ubsan --cxxopt=-fno-sanitize-recover=all
build:ubsan --cxxopt=-O0
build:ubsan --linkopt=-fsanitize=undefined

build:coverage --cxxopt=-fprofile-arcs --cxxopt=-ftest-coverage
build:coverage --linkopt=-fprofile-arcs --linkopt=-ftest-coverage --linkopt=-lgcov
build:coverage --cxxopt=-DBUILD_COVERAGE

build --cxxopt=-UENABLE_PERF
build:perf --cxxopt=-DENABLE_PERF
build:hetero --cxxopt=-DBUILD_HETERO

build --copt="-Wno-error"
build --copt="-Wno-missing-field-initializers"
build --host_copt="-Wno-missing-field-initializers"
build --copt="-w"

build --action_env=CC=gcc
build --action_env=CXX=g++
build --action_env=DS_JEMALLOC_LG_PAGE
common --enable_bzlmod=false
build --define=grpc_no_xds=true
build --define=grpc_no_binder=true
build --define=grpc_no_ares=true
build --per_file_copt=external/.*@-Wno-error

build:py39 --@rules_python//python/config_settings:python_version=3.9
build:py310 --@rules_python//python/config_settings:python_version=3.10
build:py311 --@rules_python//python/config_settings:python_version=3.11
build:py312 --@rules_python//python/config_settings:python_version=3.12
build:py313 --@rules_python//python/config_settings:python_version=3.13

build:test --define=with_tests=true
build:test --cxxopt=-DWITH_TESTS
test --define=with_tests=true
test --cxxopt=-DWITH_TESTS