Skip to content

Commit 5528a26

Browse files
authored
Fix section issues gcc 15 (#181)
1 parent 9548ee6 commit 5528a26

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
common --enable_bzlmod --enable_workspace
22
build --cxxopt='-std=c++20'
3+
# Needed to fix issues like this which arose in GCC 15:
4+
# "error: relocation refers to local symbol [...], which is defined in a discarded section"
5+
build --copt=-ffunction-sections
6+
build --copt=-fdata-sections
7+
build --linkopt=-Wl,--gc-sections

0 commit comments

Comments
 (0)