]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Don't hide stderr when checking ${CC} --version.
authorbdrewery <bdrewery@FreeBSD.org>
Sat, 31 Oct 2015 02:07:30 +0000 (02:07 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Sat, 31 Oct 2015 02:07:30 +0000 (02:07 +0000)
This can have important debugging information such as 'cc: not found' or
'ccache: error: Could not find compiler "cc" in PATH'.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division

share/mk/bsd.compiler.mk

index 3ba5130b81f3c4535b0be9958eebcf69c6968700..9ad4baee13b781a17d2927eebe614a6e03a7f26d 100644 (file)
@@ -52,7 +52,7 @@ ${var}=       ${${var}.${_cc_hash}}
 COMPILER_TYPE= none
 COMPILER_VERSION= 0
 .elif !defined(COMPILER_TYPE) || !defined(COMPILER_VERSION)
-_v!=   ${CC} --version 2>/dev/null || echo 0.0.0
+_v!=   ${CC} --version || echo 0.0.0
 
 .if !defined(COMPILER_TYPE)
 . if ${CC:T:M*gcc*}