Index: projects/clang400-import/share/mk/src.opts.mk =================================================================== --- projects/clang400-import/share/mk/src.opts.mk +++ projects/clang400-import/share/mk/src.opts.mk @@ -225,9 +225,10 @@ # Clang is enabled, and will be installed as the default /usr/bin/cc. __DEFAULT_YES_OPTIONS+=CLANG CLANG_BOOTSTRAP CLANG_FULL CLANG_IS_CC __DEFAULT_NO_OPTIONS+=GCC GCC_BOOTSTRAP GNUCXX -.elif ${COMPILER_FEATURES:Mc++11} && ${__T:Mpowerpc*} -# On powerpc, if an external compiler that supports C++11 is used as ${CC}, -# then Clang is enabled, but GCC is installed as the default /usr/bin/cc. +.elif ${COMPILER_FEATURES:Mc++11} && ${__T} != "riscv64" && ${__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. __DEFAULT_YES_OPTIONS+=CLANG CLANG_FULL GCC GCC_BOOTSTRAP GNUCXX __DEFAULT_NO_OPTIONS+=CLANG_BOOTSTRAP CLANG_IS_CC .else