mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 20:28:08 +00:00
potential macos fix
This commit is contained in:
@ -237,20 +237,21 @@ ifeq "$(LLVM_LTO)" "1"
|
|||||||
ifeq "$(AFL_REAL_LD)" ""
|
ifeq "$(AFL_REAL_LD)" ""
|
||||||
ifneq "$(shell readlink $(LLVM_BINDIR)/ld.lld 2>&1)" ""
|
ifneq "$(shell readlink $(LLVM_BINDIR)/ld.lld 2>&1)" ""
|
||||||
AFL_REAL_LD = $(LLVM_BINDIR)/ld.lld
|
AFL_REAL_LD = $(LLVM_BINDIR)/ld.lld
|
||||||
else ifneq "$(shell command -v ld.lld 2>/dev/null)" ""
|
else
|
||||||
AFL_REAL_LD = $(shell command -v ld.lld)
|
ifneq "$(shell command -v ld.lld 2>/dev/null)" ""
|
||||||
TMP_LDLDD_VERSION = $(shell $(AFL_REAL_LD) --version | awk '{ print $$2 }')
|
AFL_REAL_LD = $(shell command -v ld.lld)
|
||||||
ifeq "$(LLVMVER)" "$(TMP_LDLDD_VERSION)"
|
TMP_LDLDD_VERSION = $(shell $(AFL_REAL_LD) --version | awk '{ print $$2 }')
|
||||||
$(warning ld.lld found in a weird location ($(AFL_REAL_LD)), but its the same version as LLVM so we will allow it)
|
ifeq "$(LLVMVER)" "$(TMP_LDLDD_VERSION)"
|
||||||
|
$(warning ld.lld found in a weird location ($(AFL_REAL_LD)), but its the same version as LLVM so we will allow it)
|
||||||
|
else
|
||||||
|
$(warning ld.lld found in a weird location ($(AFL_REAL_LD)) and its of a different version than LLMV ($(TMP_LDLDD_VERSION) vs. $(LLVMVER)) - cannot enable LTO mode)
|
||||||
|
AFL_REAL_LD=
|
||||||
|
LLVM_LTO = 0
|
||||||
|
endif
|
||||||
else
|
else
|
||||||
$(warning ld.lld found in a weird location ($(AFL_REAL_LD)) and its of a different version than LLMV ($(TMP_LDLDD_VERSION) vs. $(LLVMVER)) - cannot enable LTO mode)
|
$(warning ld.lld not found, cannot enable LTO mode)
|
||||||
AFL_REAL_LD=
|
|
||||||
LLVM_LTO = 0
|
LLVM_LTO = 0
|
||||||
endif
|
endif
|
||||||
undefine TMP_LDLDD_VERSION
|
|
||||||
else
|
|
||||||
$(warning ld.lld not found, cannot enable LTO mode)
|
|
||||||
LLVM_LTO = 0
|
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user