diff options
author | Carl Dong <contact@carldong.me> | 2020-01-10 12:16:25 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2020-07-07 16:26:44 -0400 |
commit | c9c572a367f08095a3e2c7c0723da9f6778b9378 (patch) | |
tree | 138555e28bca4044aa6d97db90b6a83d1b5d0432 /depends/Makefile | |
parent | e6e5c8d6caccb4648fc580e5a01448857c2fdf18 (diff) |
depends: Allow building with system clang
Diffstat (limited to 'depends/Makefile')
-rw-r--r-- | depends/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/depends/Makefile b/depends/Makefile index 463d10efa2..3ebc3cb6b9 100644 --- a/depends/Makefile +++ b/depends/Makefile @@ -156,7 +156,11 @@ $(host_arch)_$(host_os)_native_toolchain?=$($(host_os)_native_toolchain) include funcs.mk binutils_path=$($($(host_arch)_$(host_os)_native_binutils)_prefixbin) +ifeq ($(strip $(FORCE_USE_SYSTEM_CLANG)),) toolchain_path=$($($(host_arch)_$(host_os)_native_toolchain)_prefixbin) +else +toolchain_path= +endif final_build_id_long+=$(shell $(build_SHA256SUM) config.site.in) final_build_id+=$(shell echo -n "$(final_build_id_long)" | $(build_SHA256SUM) | cut -c-$(HASH_LENGTH)) $(host_prefix)/.stamp_$(final_build_id): $(native_packages) $(packages) |