Skip to content

Commit 4ef102a

Browse files
OSS-Fuzz Teamcopybara-github
authored andcommitted
Add -fno-exceptions to clang flags when building coverage.cc
Also add -fno-rtti just in case, even though it's not strictly necessary. Without this, attempting to link the compiled object file with `clang` will result in an `undefined reference to `__gxx_personality_v0'` error. PiperOrigin-RevId: 816122422
1 parent d331f3c commit 4ef102a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

infra/base-images/base-builder/indexer/index_build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,8 @@ def build_project(
440440

441441
build_cov_instrumentation_command = [
442442
f'{_CLANG_TOOLCHAIN}/bin/clang++',
443+
'-fno-rtti',
444+
'-fno-exceptions',
443445
'-c',
444446
'/opt/indexer/coverage.cc',
445447
]

0 commit comments

Comments
 (0)