File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,12 @@ ifeq "$(LLVM_LTO)" "1"
217
217
endif
218
218
endif
219
219
220
+ ifeq "$(shell echo 'int main() {return 0; }' | $(CLANG_BIN ) -x c - -fdebug-prefix-map=$(CURDIR ) =llvm_mode -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
221
+ AFL_CLANG_DEBUG_PREFIX = -fdebug-prefix-map="$(CURDIR ) =llvm_mode"
222
+ else
223
+ AFL_CLANG_DEBUG_PREFIX = ""
224
+ endif
225
+
220
226
CFLAGS ?= -O3 -funroll-loops -fPIC -D_FORTIFY_SOURCE=2
221
227
CFLAGS_SAFE := -Wall -g -Wno-pointer-sign -I ../include/ \
222
228
-DAFL_PATH=\"$(HELPER_PATH ) \" -DBIN_PATH=\"$(BIN_PATH ) \" \
@@ -227,7 +233,7 @@ CFLAGS_SAFE := -Wall -g -Wno-pointer-sign -I ../include/ \
227
233
-DAFL_CLANG_LDPATH=\"$(AFL_CLANG_LDPATH ) \" \
228
234
-DAFL_CLANG_FUSELD=\"$(AFL_CLANG_FUSELD ) \" \
229
235
-DCLANG_BIN=\"$(CLANG_BIN ) \" -DCLANGPP_BIN=\"$(CLANGPP_BIN ) \" -DUSE_BINDIR=$(USE_BINDIR ) -Wno-unused-function \
230
- -fdebug-prefix-map=" $( CURDIR ) =llvm_mode"
236
+ $( AFL_CLANG_DEBUG_PREFIX )
231
237
override CFLAGS += $(CFLAGS_SAFE )
232
238
233
239
ifdef AFL_TRACE_PC
You can’t perform that action at this time.
0 commit comments