@@ -411,7 +411,7 @@ def generate_sanity():
411
411
412
412
413
413
@memoize
414
- def perform_sanity_checks ():
414
+ def perform_sanity_checks (quiet = False ):
415
415
# some warning, mostly not fatal checks - do them even if EM_IGNORE_SANITY is on
416
416
check_node_version ()
417
417
check_llvm_version ()
@@ -422,7 +422,8 @@ def perform_sanity_checks():
422
422
logger .info ('EM_IGNORE_SANITY set, ignoring sanity checks' )
423
423
return
424
424
425
- logger .info ('(Emscripten: Running sanity checks)' )
425
+ if not quiet :
426
+ logger .info ('(Emscripten: Running sanity checks)' )
426
427
427
428
if not llvm_ok :
428
429
exit_with_error ('failing sanity checks due to previous llvm failure' )
@@ -436,7 +437,7 @@ def perform_sanity_checks():
436
437
437
438
438
439
@ToolchainProfiler .profile ()
439
- def check_sanity (force = False ):
440
+ def check_sanity (force = False , quiet = False ):
440
441
"""Check that basic stuff we need (a JS engine to compile, Node.js, and Clang
441
442
and LLVM) exists.
442
443
@@ -459,11 +460,11 @@ def check_sanity(force=False):
459
460
460
461
if config .FROZEN_CACHE :
461
462
if force :
462
- perform_sanity_checks ()
463
+ perform_sanity_checks (quiet )
463
464
return
464
465
465
466
if os .environ .get ('EM_IGNORE_SANITY' ):
466
- perform_sanity_checks ()
467
+ perform_sanity_checks (quiet )
467
468
return
468
469
469
470
expected = generate_sanity ()
@@ -482,7 +483,7 @@ def sanity_is_correct():
482
483
# Even if the sanity file is up-to-date we still run the checks
483
484
# when force is set.
484
485
if force :
485
- perform_sanity_checks ()
486
+ perform_sanity_checks (quiet )
486
487
return True # all is well
487
488
return False
488
489
0 commit comments