pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler mk: Move GCC <= 4.4 override out of for loop.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b71982c1ff64
branches:  trunk
changeset: 381457:b71982c1ff64
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Jul 07 16:23:39 2022 +0000

description:
mk: Move GCC <= 4.4 override out of for loop.

Possible performance improvement, no funtional change.

diffstat:

 mk/compiler/gcc.mk |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (24 lines):

diff -r 4cddd87a0641 -r b71982c1ff64 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Thu Jul 07 15:26:43 2022 +0000
+++ b/mk/compiler/gcc.mk        Thu Jul 07 16:23:39 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.244 2022/07/05 17:32:24 jperkin Exp $
+# $NetBSD: gcc.mk,v 1.245 2022/07/07 16:23:39 jperkin Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -232,11 +232,11 @@
 
 .for _version_ in ${_CXX_STD_VERSIONS}
 _CXX_STD_FLAG.${_version_}?=   -std=${_version_}
-.  if !empty(_GCC_VERSION:M[34].[1234].*)
+.endfor
+.if !empty(_GCC_VERSION:M[34].[1234].*)
 _CXX_STD_FLAG.c++03=   -std=c++0x
 _CXX_STD_FLAG.gnu++03= -std=gnu++0x
-.  endif
-.endfor
+.endif
 
 .if !empty(_CC:M${LOCALBASE}/*)
 _IS_BUILTIN_GCC=       NO



Home | Main Index | Thread Index | Old Index