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"))));
{ "compile", 'c', 0, OptionArg.NONE, ref compile_only, "Compile but do not link", null },
{ "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 },
+ { "thread", 0, 0, OptionArg.NONE, ref thread, "Enable multithreading support (DEPRECATED AND IGNORED)", null },
{ "enable-mem-profiler", 0, 0, OptionArg.NONE, ref mem_profiler, "Enable GLib memory profiler", null },
{ "define", 'D', 0, OptionArg.STRING_ARRAY, ref defines, "Define SYMBOL", "SYMBOL..." },
{ "main", 0, 0, OptionArg.STRING, ref entry_point, "Use SYMBOL as entry point", "SYMBOL..." },
context.gir_directories = gir_directories;
context.metadata_directories = metadata_directories;
context.debug = debug;
- context.thread = thread;
context.mem_profiler = mem_profiler;
context.save_temps = save_temps;
if (ccode_only && save_temps) {
--directory=*) VALAFLAGS="${VALAFLAGS} $1";;
--basedir=*) VALAFLAGS="${VALAFLAGS} $1";;
--enable-checking) VALAFLAGS="${VALAFLAGS} $1";;
- --thread) VALAFLAGS="${VALAFLAGS} $1";;
--pkg=*) VALAFLAGS="${VALAFLAGS} $1";;
--vapidir=*) VALAFLAGS="${VALAFLAGS} $1";;
-X) shift; VALAFLAGS="${VALAFLAGS} -X $1";;