remove non-portable -O commandline option, fixes bug 518660
authorJuerg Billeter <j@bitron.ch>
Tue, 26 Feb 2008 20:04:52 +0000 (20:04 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 26 Feb 2008 20:04:52 +0000 (20:04 +0000)
2008-02-26  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodecompiler.vala, compiler/valacompiler.vala:
  remove non-portable -O commandline option, fixes bug 518660

svn path=/trunk/; revision=1057

ChangeLog
compiler/valacompiler.vala
gobject/valaccodecompiler.vala

index 5c00934..ca6c73b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-02-26  Jürg Billeter  <j@bitron.ch>
 
+       * gobject/valaccodecompiler.vala, compiler/valacompiler.vala:
+         remove non-portable -O commandline option, fixes bug 518660
+
+2008-02-26  Jürg Billeter  <j@bitron.ch>
+
        * gee/hashset.vala: fix iterator, patch by Ali Sabil
 
 2008-02-26  Jürg Billeter  <j@bitron.ch>
index d1f1896..8e062bf 100644 (file)
@@ -40,7 +40,6 @@ class Vala.Compiler : Object {
        static string output;
        static bool debug;
        static bool thread;
-       static int optlevel;
        static bool disable_assert;
        static bool disable_checking;
        static bool non_null;
@@ -66,7 +65,6 @@ class Vala.Compiler : Object {
                { "output", 'o', 0, OptionArg.FILENAME, out output, "Place output in file FILE", "FILE" },
                { "debug", 'g', 0, OptionArg.NONE, ref debug, "Produce debug information", null },
                { "thread", 0, 0, OptionArg.NONE, ref thread, "Enable multithreading support", null },
-               { "optimize", 'O', 0, OptionArg.INT, ref optlevel, "Optimization level", "OPTLEVEL" },
                { "define", 'D', 0, OptionArg.STRING_ARRAY, out defines, "Define SYMBOL", "SYMBOL..." },
                { "disable-assert", 0, 0, OptionArg.NONE, ref disable_assert, "Disable assertions", null },
                { "disable-checking", 0, 0, OptionArg.NONE, ref disable_checking, "Disable run-time checks", null },
@@ -159,7 +157,6 @@ class Vala.Compiler : Object {
                }
                context.debug = debug;
                context.thread = thread;
-               context.optlevel = optlevel;
                context.save_temps = save_temps;
 
                if (defines != null) {
index b5a3931..433ba23 100644 (file)
@@ -1,6 +1,6 @@
 /* valaccodecompiler.vala
  *
- * Copyright (C) 2007  Jürg Billeter
+ * Copyright (C) 2007-2008  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -84,7 +84,6 @@ public class Vala.CCodeCompiler : Object {
                if (context.debug) {
                        cmdline += " -g";
                }
-               cmdline += " -O%d".printf (context.optlevel);
                if (context.compile_only) {
                        cmdline += " -c";
                } else if (context.output != null) {