Actually make the protoc version check work

This commit is contained in:
Petteri Aimonen
2015-01-04 20:20:40 +02:00
parent 7135e2797a
commit cc3c8732fd
2 changed files with 10 additions and 6 deletions

View File

@@ -73,11 +73,9 @@ if not env.GetOption('clean'):
conf.env.Append(PROTOCPATH = '/usr/include')
# Check protoc version
status, output = conf.TryAction('protoc --version')
status, output = conf.TryAction('$PROTOC --version > $TARGET')
if status:
conf.env.Append(PROTOC_VERSION = output)
else:
conf.env.Append(PROTOC_VERSION = "")
conf.env['PROTOC_VERSION'] = output
# Check if libmudflap is available (only with GCC)
if 'gcc' in env['CC']: