You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tools/shared.py
+19-4
Original file line number
Diff line number
Diff line change
@@ -370,20 +370,32 @@ def check_fastcomp():
370
370
logging.critical('you can fall back to the older (pre-fastcomp) compiler core, although that is not recommended, see http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html')
clang_version='?'# Looks like the LLVM compiler tree has an old checkout from the time before it contained a version.txt: Should update!
380
382
else:
381
383
clang_version=llvm_version# This LLVM compiler tree does not have a tools/clang, so it's probably an out-of-source build directory. No need for separate versioning.
logging.error('Emscripten, llvm and clang versions do not match, this is dangerous (%s, %s, %s)', EMSCRIPTEN_VERSION, llvm_version, clang_version)
385
+
logging.error('Emscripten, llvm and clang repo versions do not match, this is dangerous (%s, %s, %s)', EMSCRIPTEN_VERSION, llvm_version, clang_version)
384
386
logging.error('Make sure to use the same branch in each repo, and to be up-to-date on each. See http://kripken.github.io/emscripten-site/docs/building_from_source/LLVM-Backend.html')
387
+
shown_repo_version_error=True
385
388
else:
386
389
logging.warning('did not see a source tree above or next to the LLVM root directory (guessing based on directory of %s), could not verify version numbers match'%LLVM_COMPILER)
390
+
391
+
# check build versions. don't show it if the repos are wrong, user should fix that first
logging.error('Emscripten, llvm and clang build versions do not match, this is dangerous (%s, %s, %s)', EMSCRIPTEN_VERSION, llvm_build_version, clang_build_version)
397
+
logging.error('Make sure to rebuild llvm and clang after updating repos')
398
+
387
399
returnTrue
388
400
exceptException, e:
389
401
logging.warning('could not check fastcomp: %s'%str(e))
@@ -428,6 +440,9 @@ def find_temp_directory():
428
440
else:
429
441
return'/tmp'
430
442
443
+
defget_emscripten_version(path):
444
+
returnopen(path).read().strip().replace('"', '')
445
+
431
446
# Check that basic stuff we need (a JS engine to compile, Node.js, and Clang and LLVM)
432
447
# exists.
433
448
# The test runner always does this check (through |force|). emcc does this less frequently,
@@ -436,7 +451,7 @@ def find_temp_directory():
436
451
# We also re-check sanity and clear the cache when the version changes
0 commit comments