From 7f5ffccd5ec6ee1d44da441db33614c5edede581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Billeter?= Date: Sat, 25 Oct 2008 07:04:11 +0000 Subject: Remove non-working support for conditional compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-10-25 Jürg Billeter * vala/valacodecontext.vala: * compiler/valacompiler.vala: Remove non-working support for conditional compilation svn path=/trunk/; revision=1911 --- compiler/valacompiler.vala | 9 --------- 1 file changed, 9 deletions(-) (limited to 'compiler') diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index 80c40cd54..5b878e371 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -49,8 +49,6 @@ class Vala.Compiler { [NoArrayLength] static string[] cc_options; static bool save_temps; - [NoArrayLength] - static string[] defines; static bool quiet_mode; private CodeContext context; @@ -67,7 +65,6 @@ class Vala.Compiler { { "output", 'o', 0, OptionArg.FILENAME, ref 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 }, - { "define", 'D', 0, OptionArg.STRING_ARRAY, ref 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 }, { "disable-non-null", 0, 0, OptionArg.NONE, ref disable_non_null, "Disable non-null types", null }, @@ -182,12 +179,6 @@ class Vala.Compiler { Report.error (null, "This version of valac only supports GLib 2"); } - if (defines != null) { - foreach (string define in defines) { - context.add_define (define); - } - } - context.codegen = new CCodeGenerator (); /* default packages */ -- cgit v1.2.1