Fix the '--threading' option for valac.

The actual compiler option is named '--thread', not '--threading'.

Renames the waf option for 'thread': it shouldn't be breaking anyone as
it was not even working.
This commit is contained in:
Guillaume Poirier-Morency 2015-05-26 03:23:33 -04:00
parent 3886c70929
commit f14678f3e6
1 changed files with 5 additions and 5 deletions

View File

@ -59,17 +59,17 @@ def init_vala_task(self):
if self.profile:
addflags('--profile=%s' % self.profile)
if hasattr(self, 'threading'):
if hasattr(self, 'thread'):
if self.profile == 'gobject':
if not 'GTHREAD' in self.uselib:
self.uselib.append('GTHREAD')
else:
#Vala doesn't have threading support for dova nor posix
Logs.warn("Profile %s means no threading support" % self.profile)
self.threading = False
self.thread = False
if self.threading:
addflags('--threading')
if self.thread:
addflags('--thread')
valatask = self.valatask
@ -223,7 +223,7 @@ def vala_file(self, node):
#install_binding = False
# profile = 'xyz' # adds --profile=<xyz> to enable profiling
# threading = True, # add --threading, except if profile is on or not on 'gobject'
# thread = True, # adds --thread, except if profile is on or not on 'gobject'
# vala_target_glib = 'xyz' # adds --target-glib=<xyz>, can be given through the command-line option --vala-target-glib=<xyz>
)