From 7ffd65b8b8054d8b431538c09826be5f8271e592 Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Sun, 29 Jun 2014 20:35:05 +0000 Subject: Avoid using clang as a fallback compiler on Tier-2 systems for C++0x or C11 features on platforms where it is not known to work. --- Mk/Uses/compiler.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Mk') diff --git a/Mk/Uses/compiler.mk b/Mk/Uses/compiler.mk index 867d21cfb058..e53bec0cac0e 100644 --- a/Mk/Uses/compiler.mk +++ b/Mk/Uses/compiler.mk @@ -166,7 +166,7 @@ LDFLAGS+= -B${LOCALBASE}/bin .if ${_COMPILER_ARGS:Mc++0x} .if !${COMPILER_FEATURES:Mc++0x} -.if defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc +.if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 USE_GCC= yes CHOSEN_COMPILER_TYPE= gcc .elif (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 33) || ${COMPILER_TYPE} == gcc @@ -192,7 +192,7 @@ LDFLAGS+= -B${LOCALBASE}/bin .if ${_COMPILER_ARGS:Mc11} .if !${COMPILER_FEATURES:Mc11} -.if defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc +.if (defined(FAVORITE_COMPILER) && ${FAVORITE_COMPILER} == gcc) || (${ARCH} != amd64 && ${ARCH} != i386) # clang not always supported on Tier-2 USE_GCC= yes CHOSEN_COMPILER_TYPE= gcc .elif (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 33) || ${COMPILER_TYPE} == gcc -- cgit