From cbea8f59e4b0f54c53fdef1682515cf0c92f0594 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 12 Feb 2004 11:50:46 +0000 Subject: Prevent non-zero exit status when calling the compiler to print out the version string. --- mk/compiler/mipspro.mk | 4 ++-- mk/compiler/sunpro.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'mk/compiler') diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk index c38a628cabf..6e6d00152f5 100644 --- a/mk/compiler/mipspro.mk +++ b/mk/compiler/mipspro.mk @@ -1,4 +1,4 @@ -# $NetBSD: mipspro.mk,v 1.17 2004/02/12 08:54:48 jlam Exp $ +# $NetBSD: mipspro.mk,v 1.18 2004/02/12 11:50:46 jlam Exp $ .if !defined(COMPILER_MIPSPRO_MK) COMPILER_MIPSPRO_MK= one @@ -34,7 +34,7 @@ CXX= ${PKG_CXX:T} . if exists(${MIPSPROBASE}/bin/cc) # MIPSpro Compilers: Version 7.3.1.2m -CC_VERSION_STRING!= ${MIPSPROBASE}/bin/cc -version 2>&1 +CC_VERSION_STRING!= ${MIPSPROBASE}/bin/cc -version 2>&1 || ${TRUE} CC_VERSION!= ${MIPSPROBASE}/bin/cc -version 2>&1 | ${GREP} '^MIPSpro' . else CC_VERSION_STRING= ${CC_VERSION} diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk index 9a997dc6baa..ee1b7934368 100644 --- a/mk/compiler/sunpro.mk +++ b/mk/compiler/sunpro.mk @@ -1,4 +1,4 @@ -# $NetBSD: sunpro.mk,v 1.15 2004/02/12 08:54:48 jlam Exp $ +# $NetBSD: sunpro.mk,v 1.16 2004/02/12 11:50:46 jlam Exp $ .if !defined(COMPILER_SUNPRO_MK) COMPILER_SUNPRO_MK= one @@ -35,7 +35,7 @@ CXX= ${PKG_CXX:T} _COMPILER_LD_FLAG= # empty . if exists(${SUNWSPROBASE}/bin/cc) -CC_VERSION_STRING!= ${SUNWSPROBASE}/bin/cc -V 2>&1 +CC_VERSION_STRING!= ${SUNWSPROBASE}/bin/cc -V 2>&1 || ${TRUE} CC_VERSION!= ${SUNWSPROBASE}/bin/cc -V 2>&1 | ${GREP} '^cc' . else CC_VERSION_STRING= ${CC_VERSION} -- cgit v1.2.3