From e60c508e976ff8acb71a2fd0fc6958c5f1f50a69 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 20 Jan 2025 22:04:30 +0100 Subject: Initial commit --- .bazelrc | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .bazelrc (limited to '.bazelrc') 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 -- cgit