diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-10-10 10:05:04 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-10-10 10:40:54 +0200 |
commit | 99aeafe607b29dcdc35b405641c4124595b4c7e6 (patch) | |
tree | cc21478b44924c3c15ab87c102f9f1abb2e18105 /codegen | |
parent | 30929232874f2f4e408bec33efba33ce2f064682 (diff) | |
download | vala-99aeafe607b29dcdc35b405641c4124595b4c7e6.tar.gz |
Ignore --thread commandline option and drop all gthread-2.0 references
With vala 0.32 there was no further support for glib < 2.32.
Diffstat (limited to 'codegen')
-rw-r--r-- | codegen/valaccodecompiler.vala | 3 | ||||
-rw-r--r-- | codegen/valaccodemethodmodule.vala | 10 |
2 files changed, 0 insertions, 13 deletions
diff --git a/codegen/valaccodecompiler.vala b/codegen/valaccodecompiler.vala index 1ad3f0803..52161b422 100644 --- a/codegen/valaccodecompiler.vala +++ b/codegen/valaccodecompiler.vala @@ -61,9 +61,6 @@ public class Vala.CCodeCompiler { } use_pkgconfig = true; pc += " gobject-2.0"; - if (context.thread) { - pc += " gthread-2.0"; - } foreach (string pkg in context.get_packages ()) { if (package_exists (pkg, pkg_config_command)) { use_pkgconfig = true; diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala index d147eb18b..aa2ab5c8c 100644 --- a/codegen/valaccodemethodmodule.vala +++ b/codegen/valaccodemethodmodule.vala @@ -836,16 +836,6 @@ public abstract class Vala.CCodeMethodModule : CCodeStructModule { ccode.add_expression (mem_profiler_init_call); } - if (context.thread) { - var thread_init_call = new CCodeFunctionCall (new CCodeIdentifier ("g_thread_init")); - thread_init_call.line = cmain.line; - thread_init_call.add_argument (new CCodeConstant ("NULL")); - - var cond = new CCodeIfSection ("!GLIB_CHECK_VERSION (2,32,0)"); - ccode.add_statement (cond); - cond.append (new CCodeExpressionStatement (thread_init_call)); - } - var cond = new CCodeIfSection ("!GLIB_CHECK_VERSION (2,35,0)"); ccode.add_statement (cond); cond.append (new CCodeExpressionStatement (new CCodeFunctionCall (new CCodeIdentifier ("g_type_init")))); |