[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/icecream/icecream/client
From:       Stephan Kulow <coolo () kde ! org>
Date:       2005-01-25 14:33:28
Message-ID: 20050125143328.E71821B8F2 () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

gcc got a bit strange command line parser. It first parses for -O arguments
and then later for other options. The consequence is that gcc -I -O2 -c t.c
optimizes with gcc but not icecream. So I compile always when -O* is used as
second argument
CCMAIL: matz@suse.de


  M +6 -2      arg.cpp   1.27


--- kdenonbeta/icecream/icecream/client/arg.cpp  #1.26:1.27
@@ -191,6 +191,10 @@ bool analyse_argv( const char * const *a
                 args.append(a, Arg_Local);
                 /* skip next word, being option argument */
-                if (argv[i+1])
-                    args.append(  argv[++i], Arg_Local );
+                if (argv[i+1]) {
+                    ++i;
+                    if (str_startswith("-O", argv[i]))
+                         always_local = true;
+                    args.append(  argv[i], Arg_Local );
+                }
             } else if (str_startswith("-Wp,", a)
                  || str_startswith("-D", a)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic