mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
CCACHE_BUILD: Avoid ccache when looking up compiler metadata.
MFC after: 2 weeks Sponsored by: Dell EMC
This commit is contained in:
parent
581672388f
commit
759aa20d7b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335709
@ -148,7 +148,7 @@ ${X_}COMPILER_TYPE= none
|
||||
${X_}COMPILER_VERSION= 0
|
||||
${X_}COMPILER_FREEBSD_VERSION= 0
|
||||
.elif !defined(${X_}COMPILER_TYPE) || !defined(${X_}COMPILER_VERSION)
|
||||
_v!= ${${cc}} --version || echo 0.0.0
|
||||
_v!= ${${cc}:N${CCACHE_BIN}} --version || echo 0.0.0
|
||||
|
||||
.if !defined(${X_}COMPILER_TYPE)
|
||||
. if ${${cc}:T:M*gcc*}
|
||||
@ -171,7 +171,7 @@ ${X_}COMPILER_VERSION!=echo "${_v:M[1-9].[0-9]*}" | awk -F. '{print $$1 * 10000
|
||||
.undef _v
|
||||
.endif
|
||||
.if !defined(${X_}COMPILER_FREEBSD_VERSION)
|
||||
${X_}COMPILER_FREEBSD_VERSION!= { echo "__FreeBSD_cc_version" | ${${cc}} -E - 2>/dev/null || echo __FreeBSD_cc_version; } | sed -n '$$p'
|
||||
${X_}COMPILER_FREEBSD_VERSION!= { echo "__FreeBSD_cc_version" | ${${cc}:N${CCACHE_BIN}} -E - 2>/dev/null || echo __FreeBSD_cc_version; } | sed -n '$$p'
|
||||
# If we get a literal "__FreeBSD_cc_version" back then the compiler
|
||||
# is a non-FreeBSD build that doesn't support it or some other error
|
||||
# occurred.
|
||||
|
Loading…
Reference in New Issue
Block a user