Repository navigation
Expand file tree
/
Copy path.bazelrc
More file actions
71 lines (58 loc) · 2.31 KB
/
Copy path.bazelrc
File metadata and controls
71 lines (58 loc) · 2.31 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
build:linux --cxxopt=-std=c++20
build:linux --cxxopt=-Wall
build:linux --cxxopt=-Wextra
build:linux --cxxopt=-Wpedantic
build:linux --cxxopt=-Werror
build:linux --cxxopt=-O3
build:macos --cxxopt=-std=c++20
build:macos --cxxopt=-Wall
build:macos --cxxopt=-Wextra
build:macos --cxxopt=-Wpedantic
build:macos --cxxopt=-Werror
build:macos --cxxopt=-O3
build:windows --cxxopt=/std:c++20
build:windows --cxxopt=/W4
build:windows --cxxopt=/O2
build:windows --cxxopt=/utf-8
build -c opt
common --enable_platform_specific_config
# Set minimum supported MacOS version to 11.0.
build:macos --macos_minimum_os=11.0
####################################################################################################
# This block follows https://github.com/wjakob/nanobind_example/blob/bazel/.bazelrc
####################################################################################################
# nanobind's minsize.
build --flag_alias=minsize=@nanobind_bazel//:minsize
# nanobind's py-limited-api.
build --flag_alias=py_limited_api=@nanobind_bazel//:py-limited-api
# rules_python's Python version, should not collide with builtin --python_version.
build --flag_alias=target_python_version=@rules_python//python/config_settings:python_version
# rules_python's indicator to only use free-threaded toolchains for CPython 3.13+.
# Needs to be given _together with_ nanobind-bazel's `free_threading` flag.
build --flag_alias=free_threaded=@rules_python//python/config_settings:py_freethreaded
####################################################################################################
build:debug -c dbg
build:debug --cxxopt=-gfull
build:debug --cxxopt=-O0
build:debug --spawn_strategy=local
build:asan -c dbg
build:asan --copt -fsanitize=address
build:asan --copt -gfull
build:asan --copt -O0
build:asan --spawn_strategy=local
build:asan --copt -fno-omit-frame-pointer
build:asan --linkopt -fsanitize=address
build:msan -c dbg
build:msan --copt -fsanitize=memory
build:msan --copt -gfull
build:msan --copt -O0
build:msan --spawn_strategy=local
build:msan --copt -fno-omit-frame-pointer
build:msan --linkopt -fsanitize=memory
build:ubsan -c dbg
build:ubsan --copt -fsanitize=undefined
build:ubsan --copt -gfull
build:ubsan --copt -O0
build:ubsan --spawn_strategy=local
build:ubsan --copt -fno-omit-frame-pointer
build:ubsan --linkopt -fsanitize=undefined