Makefile: use absolute path for llvm-build/bin/* binaries
This un-breaks `make wasi-libc` on my system.
Этот коммит содержится в:
родитель
38cd5b80ec
коммит
e7e1b755c9
1 изменённых файлов: 1 добавлений и 1 удалений
2
Makefile
2
Makefile
|
@ -20,7 +20,7 @@ ifeq ($(shell uname -s),Darwin)
|
||||||
toolSearchPathsVersion += $(BREW_PREFIX)/opt/llvm@$(2)/bin/$(1)-$(2) $(BREW_PREFIX)/opt/llvm@$(2)/bin/$(1)
|
toolSearchPathsVersion += $(BREW_PREFIX)/opt/llvm@$(2)/bin/$(1)-$(2) $(BREW_PREFIX)/opt/llvm@$(2)/bin/$(1)
|
||||||
endif
|
endif
|
||||||
# First search for a custom built copy, then move on to explicitly version-tagged binaries, then just see if the tool is in path with its normal name.
|
# First search for a custom built copy, then move on to explicitly version-tagged binaries, then just see if the tool is in path with its normal name.
|
||||||
findLLVMTool = $(call detect,$(1),llvm-build/bin/$(1) $(foreach ver,$(LLVM_VERSIONS),$(call toolSearchPathsVersion,$(1),$(ver))) $(1))
|
findLLVMTool = $(call detect,$(1),$(abspath llvm-build/bin/$(1)) $(foreach ver,$(LLVM_VERSIONS),$(call toolSearchPathsVersion,$(1),$(ver))) $(1))
|
||||||
CLANG ?= $(call findLLVMTool,clang)
|
CLANG ?= $(call findLLVMTool,clang)
|
||||||
LLVM_AR ?= $(call findLLVMTool,llvm-ar)
|
LLVM_AR ?= $(call findLLVMTool,llvm-ar)
|
||||||
LLVM_NM ?= $(call findLLVMTool,llvm-nm)
|
LLVM_NM ?= $(call findLLVMTool,llvm-nm)
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче