summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-01-08 17:25:59 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-01-08 17:25:59 +0000
commite48503fffdddc896a21ae2891975c41645c4cfb4 (patch)
treed76c78c3da478b324eca8468a28c62e62cd0c16a /Makefile
parentf8091e2c8f1e8c64bf58bec286caf99d7626d896 (diff)
downloadsrc-test-e48503fffdddc896a21ae2891975c41645c4cfb4.tar.gz
src-test-e48503fffdddc896a21ae2891975c41645c4cfb4.zip
Use clang and lld as the default toolchain for RISCV.
- Enable clang and lld as system toolchains. - Don't use external GCC for universe by default. - Re-enable riscv64sf since it builds fine with clang + lld. Reviewed by: emaste, mhorne Relnotes: yes Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D23089
Notes
Notes: svn path=/head/; revision=356499
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 4ed469a60b955..f78a1b040c153 100644
--- a/Makefile
+++ b/Makefile
@@ -495,23 +495,20 @@ TARGET_ARCHES_arm64?= aarch64
TARGET_ARCHES_mips?= mipsel mips mips64el mips64 mipsn32 mipselhf mipshf mips64elhf mips64hf
# powerpcspe excluded until clang fixed
TARGET_ARCHES_powerpc?= powerpc powerpc64
-# riscv64sf excluded due to PR 232085
-TARGET_ARCHES_riscv?= riscv64
+TARGET_ARCHES_riscv?= riscv64 riscv64sf
.for target in ${TARGETS}
TARGET_ARCHES_${target}?= ${target}
.endfor
-MAKE_PARAMS_riscv?= CROSS_TOOLCHAIN=riscv64-gcc
MAKE_PARAMS_mips?= CROSS_TOOLCHAIN=mips-gcc6
MAKE_PARAMS_sparc64?= CROSS_TOOLCHAIN=sparc64-gcc6
TOOLCHAINS_mips= mips-gcc6
-TOOLCHAINS_riscv= riscv64-gcc
TOOLCHAINS_sparc64= sparc64-gcc6
# Remove architectures only supported by external toolchain from
# universe if required toolchain packages are missing.
-.for target in mips riscv sparc64
+.for target in mips sparc64
.if ${_UNIVERSE_TARGETS:M${target}}
.for toolchain in ${TOOLCHAINS_${target}}
.if !exists(/usr/local/share/toolchains/${toolchain}.mk)