aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2018-03-15 07:21:12 +0800
committerbdrewery <bdrewery@FreeBSD.org>2018-03-15 07:21:12 +0800
commit689ef80685d21f404e3e4c7d0d396bd1c1502519 (patch)
treec981850ada8c5fdae7d8cd3824c0f8fb8532f4e3 /Mk
parent1a71598e966474ff2980d5a8b7249b26ea0c1e2e (diff)
downloadfreebsd-ports-gnome-689ef80685d21f404e3e4c7d0d396bd1c1502519.tar.gz
freebsd-ports-gnome-689ef80685d21f404e3e4c7d0d396bd1c1502519.tar.zst
freebsd-ports-gnome-689ef80685d21f404e3e4c7d0d396bd1c1502519.zip
PORTS_ENV: Reorder CC hash and std hash so CC's comes first.
This is only a cosmetic change. Approved by: portmgr (implicit)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/compiler.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/Mk/Uses/compiler.mk b/Mk/Uses/compiler.mk
index 5fb223fef761..d8a2c97d8a6e 100644
--- a/Mk/Uses/compiler.mk
+++ b/Mk/Uses/compiler.mk
@@ -145,12 +145,12 @@ _LANG=c
.if ${CXXSTD:M${std}}
_LANG=c++
.endif
-.if defined(CC_OUTPUT_${std:hash}_${_CC_hash})
-OUTPUT_${std}= ${CC_OUTPUT_${std:hash}_${_CC_hash}}
+.if defined(CC_OUTPUT_${_CC_hash}_${std:hash})
+OUTPUT_${std}= ${CC_OUTPUT_${_CC_hash}_${std:hash}}
.else
OUTPUT_${std}!= ${CC} -std=${std} -c -x ${_LANG} /dev/null -o /dev/null 2>&1; echo yes
-CC_OUTPUT_${std:hash}_${_CC_hash}= ${OUTPUT_${std}}
-PORTS_ENV_VARS+= CC_OUTPUT_${std:hash}_${_CC_hash}
+CC_OUTPUT_${_CC_hash}_${std:hash}= ${OUTPUT_${std}}
+PORTS_ENV_VARS+= CC_OUTPUT_${_CC_hash}_${std:hash}
.endif
.if !${OUTPUT_${std}:M*error*}
COMPILER_FEATURES+= ${std}