srctree

Robin Linden parent 6c67380e 1d4c4f07
build: Disable rtti

We're not using it yet, and since we've gotten quite far without it nowI figure we should make a conscious decision if/when to introduce itrather than let it sneak in by accident.

inlinesplit
.bazelrc added: 8, removed: 3, total 5
@@ -19,6 +19,7 @@ build --incompatible_disallow_empty_glob
# =========================================================
 
build:linux --cxxopt='-std=c++20'
build:linux --cxxopt='-fno-rtti'
build:linux --copt='-Wall'
build:linux --copt='-Wextra'
build:linux --copt='-pedantic-errors'
@@ -93,6 +94,7 @@ build:gcc12 --per_file_copt='external/glew[:/]@-Wno-address'
 
build:windows --enable_runfiles
build:windows --cxxopt='/std:c++20'
build:windows --cxxopt='/GR-' # Disable rtti.
build:windows --copt='/W4' # More warnings.
build:windows --copt='/WX' # Treat warnings as errors.
build:windows --copt='/permissive-' # Conform to the standard.
 
third_party/asio.BUILD added: 8, removed: 3, total 5
@@ -7,7 +7,10 @@ cc_library(
"include/**/*.hpp",
"include/**/*.ipp",
]),
defines = ["ASIO_SEPARATE_COMPILATION"],
defines = [
"ASIO_NO_TYPEID",
"ASIO_SEPARATE_COMPILATION",
],
strip_include_prefix = "include",
visibility = ["//visibility:public"],
deps = ["@boringssl//:ssl"],