diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2014-06-30 04:35:05 +0800 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2014-06-30 04:35:05 +0800 |
commit | 7ffd65b8b8054d8b431538c09826be5f8271e592 (patch) | |
tree | 02e6d39b01c54424ccac24d0806bbca9ba5a3473 /Mk | |
parent | c562403a1398a774bc1ace3a3e29598f937f9398 (diff) | |
download | freebsd-ports-gnome-7ffd65b8b8054d8b431538c09826be5f8271e592.tar.gz freebsd-ports-gnome-7ffd65b8b8054d8b431538c09826be5f8271e592.tar.zst freebsd-ports-gnome-7ffd65b8b8054d8b431538c09826be5f8271e592.zip |
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.
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/compiler.mk | 4 |
1 files changed, 2 insertions, 2 deletions
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 |