enable warnings for LTO mode 's/warn /warning /'

This commit is contained in:
Josh Bundt (tr0gd0r)
2021-01-27 22:39:33 -05:00
committed by GitHub
parent 2044c7e2b5
commit 9bc8c7518f

View File

@ -208,12 +208,12 @@ ifeq "$(LLVM_LTO)" "1"
ifneq "$(shell readlink $(LLVM_BINDIR)/ld.lld 2>&1)" ""
AFL_REAL_LD = $(LLVM_BINDIR)/ld.lld
else
$(warn ld.lld not found, cannot enable LTO mode)
$(warning ld.lld not found, cannot enable LTO mode)
LLVM_LTO = 0
endif
endif
else
$(warn clang option -flto is not working - maybe LLVMgold.so not found - cannot enable LTO mode)
$(warning clang option -flto is not working - maybe LLVMgold.so not found - cannot enable LTO mode)
LLVM_LTO = 0
endif
endif
@ -226,7 +226,7 @@ ifeq "$(LLVM_LTO)" "1"
AFL_CLANG_LDPATH=1
endif
else
$(warn -fuse-ld is not working, cannot enable LTO mode)
$(warning -fuse-ld is not working, cannot enable LTO mode)
LLVM_LTO = 0
endif
endif