Skip to content

Commit ffb1354

Browse files
committed
sanity checker also prints our version number.
1 parent 6bfb131 commit ffb1354

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

wllvm/checker.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import subprocess as sp
1414
import errno
1515

16+
from .version import wllvm_version
1617

1718
explain_LLVM_COMPILER = """
1819
@@ -115,10 +116,11 @@ def checkOS(self):
115116
def checkSwitch(self):
116117
"""Checks the correctness of the LLVM_COMPILER env var."""
117118
compiler_type = os.getenv('LLVM_COMPILER')
119+
vmsg = 'We are wllvm version {0} and'.format(wllvm_version)
118120
if compiler_type == 'clang':
119-
return (1, '\nGood, we are using clang.\n')
121+
return (1, '\n{0} we are using clang.\n'.format(vmsg))
120122
elif compiler_type == 'dragonegg':
121-
return (2, '\nOK, we are using dragonegg.\n')
123+
return (2, '\n{0} we are using dragonegg.\n'.format(vmsg))
122124
else:
123125
return (0, explain_LLVM_COMPILER)
124126

0 commit comments

Comments
 (0)