diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-16 20:04:15 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-17 11:57:10 -0800 |
commit | e324eeb799d94645baa497731d82b46624494599 (patch) | |
tree | 49c5c886250b307da025c4c65540a32c8ef877e2 /check.py | |
parent | fa4cad6f178842d1901dbcd680dfe80dfde6853f (diff) | |
download | binaryen-e324eeb799d94645baa497731d82b46624494599.tar.gz binaryen-e324eeb799d94645baa497731d82b46624494599.tar.bz2 binaryen-e324eeb799d94645baa497731d82b46624494599.zip |
improve clang checking reporting
Diffstat (limited to 'check.py')
-rwxr-xr-x | check.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -102,7 +102,7 @@ if not has_emcc: BASE_DIR = os.path.abspath('test') WATERFALL_BUILD_DIR = os.path.join(BASE_DIR, 'wasm-install') -BIN_DIR = os.path.abspath(os.path.join(BASE_DIR, 'waterfall_build', 'llvm-install', 'bin')) +BIN_DIR = os.path.abspath(os.path.join(WATERFALL_BUILD_DIR, 'bin')) def fetch_waterfall(): rev = open(os.path.join('test', 'revision')).read() @@ -115,11 +115,12 @@ def fetch_waterfall(): def setup_waterfall(): # if we can use the waterfall llvm, do so + CLANG = os.path.join(BIN_DIR, 'clang') try: - subprocess.check_call([os.path.join(BIN_DIR, 'clang'), '-v'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + subprocess.check_call([CLANG, '-v'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) os.environ['LLVM'] = BIN_DIR except Exception, e: - warn('could not run vanilla LLVM from waterfall: ' + str(e)) + warn('could not run vanilla LLVM from waterfall: ' + str(e) + ', looked for clang at ' + CLANG) fetch_waterfall() setup_waterfall() |