Skip to content

Commit 8bb5d25

Browse files
committed
More test logging
1 parent 0d689a3 commit 8bb5d25

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

embuilder.py

+2
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: NOT 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

+11
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,12 @@ def build(self, deterministic_paths=False):
425425
426426
This will trigger a build if this library is not in the cache.
427427
"""
428+
print(f'system_libs: build: deterministic_paths = {deterministic_paths} CIRCLECI = {CIRCLECI}')
428429
self.deterministic_paths = deterministic_paths
429430
return cache.get(self.get_path(), self.do_build, force=USE_NINJA == 2, quiet=USE_NINJA)
430431

431432
def generate(self):
433+
print(f'system_libs: generate: CIRCLECI = {CIRCLECI}')
432434
self.deterministic_paths = False
433435
return cache.get(self.get_path(), self.do_generate, force=USE_NINJA == 2, quiet=USE_NINJA,
434436
deferred=True)
@@ -466,13 +468,17 @@ def get_files(self):
466468
raise NotImplementedError()
467469

468470
def generate_ninja(self, build_dir, libname):
471+
print(f'system_libs: generate_ninja: deterministic_paths = {self.deterministic_paths} CIRCLECI = {CIRCLECI}')
469472
ensure_sysroot()
470473
utils.safe_ensure_dirs(build_dir)
471474

472475
cflags = self.get_cflags()
473476
if self.deterministic_paths:
474477
source_dir = utils.path_from_root()
475478
relative_source_dir = os.path.relpath(source_dir, build_dir)
479+
print(f' source_dir = {source_dir}')
480+
print(f' build_dir = {build_dir}')
481+
print(f' relative_source_dir = {relative_source_dir}')
476482
cflags += [f'-ffile-prefix-map={source_dir}=/emsdk/emscripten',
477483
f'-ffile-prefix-map={relative_source_dir}/=',
478484
'-fdebug-compilation-dir=/emsdk/emscripten']
@@ -488,15 +494,20 @@ def build_objects(self, build_dir):
488494
By default, this builds all the source files returned by `self.get_files()`,
489495
with the `cflags` returned by `self.get_cflags()`.
490496
"""
497+
print(f'system_libs: build_objects: deterministic_paths = {self.deterministic_paths} CIRCLECI = {CIRCLECI}')
491498
batch_inputs = int(os.environ.get('EMCC_BATCH_BUILD', '1'))
492499
batches = {}
493500
commands = []
494501
objects = set()
495502
cflags = self.get_cflags()
496503
if self.deterministic_paths:
497504
source_dir = utils.path_from_root()
505+
print(f' source_dir = {source_dir}')
506+
print(f' build_dir = {build_dir}')
498507
if batch_inputs:
508+
print('batch_inputs')
499509
relative_source_dir = os.path.relpath(source_dir, build_dir)
510+
print(f' relative_source_dir = {relative_source_dir}')
500511
cflags += [f'-ffile-prefix-map={relative_source_dir}/=']
501512
cflags += [f'-ffile-prefix-map={source_dir}=/emsdk/emscripten',
502513
'-fdebug-compilation-dir=/emsdk/emscripten']

0 commit comments

Comments
 (0)