pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper Converted this file to use the shell functi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/03e030bdcdfa
branches:  trunk
changeset: 521894:03e030bdcdfa
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Nov 26 13:00:26 2006 +0000

description:
Converted this file to use the shell functions provided in
wrapper-subr.sh.

diffstat:

 mk/wrapper/transform-icc-cc |  59 ++++++++++++++++++++++----------------------
 1 files changed, 30 insertions(+), 29 deletions(-)

diffs (74 lines):

diff -r 825c102ee09f -r 03e030bdcdfa mk/wrapper/transform-icc-cc
--- a/mk/wrapper/transform-icc-cc       Sun Nov 26 12:21:13 2006 +0000
+++ b/mk/wrapper/transform-icc-cc       Sun Nov 26 13:00:26 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-icc-cc,v 1.5 2006/09/17 18:46:00 rillig Exp $
+# $NetBSD: transform-icc-cc,v 1.6 2006/11/26 13:00:26 rillig Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -34,35 +34,36 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 
+transform_setname "transform-icc-cc"
+
 case $arg in
-######################################################################
-# ignore flags that icc doesn't understand.
-######################################################################
--fexceptions|-ffast-math|-fomit-frame-pointer|-pedantic|-pipe|-s|-MP|-OPT:*)
-       arg=
-       $debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
-       addtocache=yes
-       ;;
+-fexceptions           |\
+-ffast-math            |\
+-fomit-frame-pointer   |\
+-MP                    |\
+-OPT:*                 |\
+-pedantic              |\
+-pipe                  |\
+-s)
+       # ignore flags that icc doesn't understand.
+       transform_discard ;;
+
 -finline-functions)
-       arg=-Ob2
-       $debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
-       addtocache=yes
-       ;;
--funroll-all-loops|-funroll-loops)
-       arg=-unroll
-       $debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
-       addtocache=yes
-       ;;
--O[4-9]|-O[12][0-9])
-       arg=-O3
-       $debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
-       addtocache=yes
-       ;;
--Wall|-Wl,*)
-       ;;
+       transform_to "-Ob2" ;;
+
+-funroll-all-loops     |\
+-funroll-loops)
+       transform_to "-unroll" ;;
+
+-O[4-9]                        |\
+-O[12][0-9])
+       transform_to "-O3" ;;
+
+-Wall                  |\
+-Wl,*)
+       transform_pass ;;
+
 -W*)
-       arg=
-       $debug_log $wrapperlog "   (transform-icc-cc) to: $arg"
-       addtocache=yes
-       ;;
+       transform_discard_with_warning ;;
+
 esac



Home | Main Index | Thread Index | Old Index