File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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"' ,
You can’t perform that action at this time.
0 commit comments