Skip to content

Commit 276c638

Browse files
committed
Test logging
1 parent 6f0f0f3 commit 276c638

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

embuilder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,10 @@ def main():
291291
library.erase()
292292
if do_build:
293293
if USE_NINJA:
294+
print('embuilder: USE_NINJA: library.generate()')
294295
library.generate()
295296
else:
297+
print('embuilder: USE_NINJA: library.build(deterministic_paths=True)')
296298
library.build(deterministic_paths=True)
297299
elif what == 'sysroot':
298300
if do_clear:

tools/system_libs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
# Setting EMCC_USE_NINJA=2 means that ninja will automatically be run for each library needed at
4242
# link time.
4343
USE_NINJA = int(os.environ.get('EMCC_USE_NINJA', '0'))
44+
CIRCLECI = bool(os.environ.get('CIRCLECI', False))
4445

4546

4647
def files_in_path(path, filenames):
@@ -424,10 +425,12 @@ def build(self, deterministic_paths=False):
424425
425426
This will trigger a build if this library is not in the cache.
426427
"""
428+
print(f'system_libs: build: deterministic_paths = {deterministic_paths} CIRCLECI = {CIRCLECI}')
427429
self.deterministic_paths = deterministic_paths
428430
return cache.get(self.get_path(), self.do_build, force=USE_NINJA == 2, quiet=USE_NINJA)
429431

430432
def generate(self):
433+
print(f'system_libs: generate: CIRCLECI = {CIRCLECI}')
431434
self.deterministic_paths = False
432435
return cache.get(self.get_path(), self.do_generate, force=USE_NINJA == 2, quiet=USE_NINJA,
433436
deferred=True)
@@ -465,6 +468,7 @@ def get_files(self):
465468
raise NotImplementedError()
466469

467470
def generate_ninja(self, build_dir, libname):
471+
print(f'system_libs: generate_ninja: deterministic_paths = {self.deterministic_paths} CIRCLECI = {CIRCLECI}')
468472
ensure_sysroot()
469473
utils.safe_ensure_dirs(build_dir)
470474

0 commit comments

Comments
 (0)