pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk/wrapper Added handlers for the standard options.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/df79bc114fbb
branches:  trunk
changeset: 522011:df79bc114fbb
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Nov 30 12:18:32 2006 +0000

description:
Added handlers for the standard options.

A warning is printed for all options that are not explicitly handled.

Reindentation to align with the other files.

diffstat:

 mk/wrapper/transform-icc-cc |  31 +++++++++++++++++--------------
 1 files changed, 17 insertions(+), 14 deletions(-)

diffs (59 lines):

diff -r 78be313660ec -r df79bc114fbb mk/wrapper/transform-icc-cc
--- a/mk/wrapper/transform-icc-cc       Thu Nov 30 12:11:48 2006 +0000
+++ b/mk/wrapper/transform-icc-cc       Thu Nov 30 12:18:32 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: transform-icc-cc,v 1.6 2006/11/26 13:00:26 rillig Exp $
+# $NetBSD: transform-icc-cc,v 1.7 2006/11/30 12:18:32 rillig Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -37,6 +37,13 @@
 transform_setname "transform-icc-cc"
 
 case $arg in
+
+# Standard options (except -s, which is handled below).
+-[cEgOo]               |\
+-[DILlU]?*             |\
+-O[01]                 ) transform_pass ;;
+
+# ignore flags that icc doesn't understand.
 -fexceptions           |\
 -ffast-math            |\
 -fomit-frame-pointer   |\
@@ -44,26 +51,22 @@
 -OPT:*                 |\
 -pedantic              |\
 -pipe                  |\
--s)
-       # ignore flags that icc doesn't understand.
-       transform_discard ;;
+-s                     ) transform_discard ;;
 
--finline-functions)
-       transform_to "-Ob2" ;;
+-finline-functions     ) transform_to "-Ob2" ;;
 
 -funroll-all-loops     |\
--funroll-loops)
-       transform_to "-unroll" ;;
+-funroll-loops         ) transform_to "-unroll" ;;
 
 -O[4-9]                        |\
--O[12][0-9])
-       transform_to "-O3" ;;
+-O[12][0-9]            ) transform_to "-O3" ;;
 
 -Wall                  |\
--Wl,*)
-       transform_pass ;;
+-Wl,*                  ) transform_pass ;;
 
--W*)
-       transform_discard_with_warning ;;
+-W*                    ) transform_discard_with_warning ;;
+
+# Unknown options.
+-*                     ) transform_pass_with_warning ;;
 
 esac



Home | Main Index | Thread Index | Old Index