Skip to content

Commit f98632f

Browse files
authored
Add more cflags. (#13524)
These are necessary after #13512, which unfortunately broke a lot of projects.
1 parent 2385dd6 commit f98632f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

infra/build/functions/build_project.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,18 @@ def get_indexer_build_steps(project_name,
584584
'ENV REPLAY_ENABLED 1',
585585
# Add CFLAGS that enable debugging (this should match the
586586
# index_build.py CFLAGS)
587+
# TODO(ochang): Figure out how to just re-use the cflags from there instead of
588+
# duplicating them here.
587589
'-c',
588-
'ENV CFLAGS "$$CFLAGS -O0 -glldb"',
590+
('ENV CFLAGS "$$CFLAGS '
591+
'-fno-omit-frame-pointer '
592+
'-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION '
593+
'-O0 -glldb '
594+
'-fsanitize=address '
595+
'-Wno-invalid-offsetof '
596+
'-fsanitize-coverage=bb,no-prune,trace-pc-guard '
597+
'-gen-cdb-fragment-path $$OUT/cdb '
598+
'-Qunused-arguments"'),
589599
# Make sure the compiler wrapper is in $PATH.
590600
'-c',
591601
'ENV PATH "/opt/indexer:$$PATH"',

0 commit comments

Comments
 (0)