We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 393b365 commit bd84959Copy full SHA for bd84959
1 file changed
.bazelrc
@@ -1,2 +1,13 @@
1
common --enable_bzlmod --enable_workspace
2
+
3
+# Automatically apply build:<os> sections based on host OS.
4
+common --enable_platform_specific_config
5
6
build --cxxopt='-std=c++20'
7
8
+# Needed to fix issues like this which arose in GCC 15 on Linux:
9
+# "error: relocation refers to local symbol [...], which is defined in a discarded section"
10
+# We keep it linux-only so macos does not receive GNU ld flags
11
+build:linux --copt=-ffunction-sections
12
+build:linux --copt=-fdata-sections
13
+build:linux --linkopt=-Wl,--gc-sections
0 commit comments