diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-01-20 22:04:30 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-01-20 22:04:30 +0100 |
commit | e60c508e976ff8acb71a2fd0fc6958c5f1f50a69 (patch) | |
tree | a3e6fa3d693986185e77f7287b546104a7f4c030 /.bazelrc |
Initial commit
Diffstat (limited to '.bazelrc')
-rw-r--r-- | .bazelrc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 0000000..2a72692 --- /dev/null +++ b/.bazelrc @@ -0,0 +1,33 @@ +common --registry=https://bcr.bazel.build
+common --registry=https://git.stevenlr.com/460nm/bazel-registry.git/plain/
+
+build:windows --extra_execution_platforms=//:x64_windows-clang-cl
+# @Todo(bazel) We should be able to use @local_config_cc...
+build:windows --extra_toolchains=@@rules_cc++cc_configure_extension+local_config_cc//:cc-toolchain-x64_windows-clang-cl
+
+build:windows --cxxopt=-Xclang=-std=c++20
+
+common --incompatible_autoload_externally=+@rules_python
+
+build --cxxopt=-Wall
+build --cxxopt=-Wno-c++98-compat
+build --cxxopt=-Wno-c++98-compat-pedantic
+build --cxxopt=-Wno-pre-c++17-compat
+build --cxxopt=-Wno-c++20-compat
+build --cxxopt=-Wno-unused-macros
+build --cxxopt=-Wno-documentation-unknown-command
+build --cxxopt=-Wno-extra-semi-stmt
+build --cxxopt=-Wno-extra-semi
+build --cxxopt=-Wno-global-constructors
+build --cxxopt=-Wno-unsafe-buffer-usage
+build --cxxopt=-Wno-covered-switch-default
+
+build:windows_san --config=windows
+build:windows_san --copt=-fno-sanitize-ignorelist
+build:windows_san --copt=-fsanitize=address
+build:windows_san --copt=-fsanitize=undefined
+build:windows_san --copt=-fno-sanitize-recover=all
+build:windows_san --linkopt=clang_rt.asan-x86_64.lib
+build:windows_san --copt=/MT
+
+test --test_output=errors
|