aboutsummaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2019-11-12 21:26:50 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2019-11-12 21:26:50 +0000
commitde9950e872e8106d4106855d245518aa915e7674 (patch)
tree2ccda7ad6f8e20db9dcc766531ef2a621fe1daa8 /share/mk
parent07b35f77c0e6820341bd60982386efd1338d6a5e (diff)
downloadsrc-de9950e872e8106d4106855d245518aa915e7674.tar.gz
src-de9950e872e8106d4106855d245518aa915e7674.zip
Enable the RISC-V LLVM backend by default.
Reviewed by: dim, mhorne, emaste MFC after: 1 month Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D22284
Notes
Notes: svn path=/head/; revision=354660
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/src.opts.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 0695dc912f37..1376d3d2690a 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -276,6 +276,7 @@ __LLVM_TARGETS= \
arm \
mips \
powerpc \
+ riscv \
sparc \
x86
__LLVM_TARGET_FILT= C/(amd64|i386)/x86/:S/sparc64/sparc/:S/arm64/aarch64/:S/powerpc64/powerpc/
@@ -298,7 +299,6 @@ __DEFAULT_DEPENDENT_OPTIONS+= LLVM_TARGET_${__llt:${__LLVM_TARGET_FILT}:tu}/LLVM
.endfor
__DEFAULT_NO_OPTIONS+=LLVM_TARGET_BPF
-__DEFAULT_NO_OPTIONS+=LLVM_TARGET_RISCV
.include <bsd.compiler.mk>
# If the compiler is not C++11 capable, disable Clang and use GCC instead.
@@ -310,7 +310,7 @@ __DEFAULT_NO_OPTIONS+=LLVM_TARGET_RISCV
# Clang is enabled, and will be installed as the default /usr/bin/cc.
__DEFAULT_YES_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_IS_CC LLD
__DEFAULT_NO_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX GPL_DTC
-.elif ${COMPILER_FEATURES:Mc++11} && ${__T:Mriscv*} == "" && ${__T} != "sparc64"
+.elif ${COMPILER_FEATURES:Mc++11} && ${__T} != "sparc64"
# If an external compiler that supports C++11 is used as ${CC} and Clang
# supports the target, then Clang is enabled but GCC is installed as the
# default /usr/bin/cc.