@@ -425,10 +425,12 @@ def build(self, deterministic_paths=False):
425
425
426
426
This will trigger a build if this library is not in the cache.
427
427
"""
428
+ print (f'system_libs: build: deterministic_paths = { deterministic_paths } CIRCLECI = { CIRCLECI } ' )
428
429
self .deterministic_paths = deterministic_paths
429
430
return cache .get (self .get_path (), self .do_build , force = USE_NINJA == 2 , quiet = USE_NINJA )
430
431
431
432
def generate (self ):
433
+ print (f'system_libs: generate: CIRCLECI = { CIRCLECI } ' )
432
434
self .deterministic_paths = False
433
435
return cache .get (self .get_path (), self .do_generate , force = USE_NINJA == 2 , quiet = USE_NINJA ,
434
436
deferred = True )
@@ -466,13 +468,17 @@ def get_files(self):
466
468
raise NotImplementedError ()
467
469
468
470
def generate_ninja (self , build_dir , libname ):
471
+ print (f'system_libs: generate_ninja: deterministic_paths = { self .deterministic_paths } CIRCLECI = { CIRCLECI } ' )
469
472
ensure_sysroot ()
470
473
utils .safe_ensure_dirs (build_dir )
471
474
472
475
cflags = self .get_cflags ()
473
476
if self .deterministic_paths :
474
477
source_dir = utils .path_from_root ()
475
478
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 } ' )
476
482
cflags += [f'-ffile-prefix-map={ source_dir } =/emsdk/emscripten' ,
477
483
f'-ffile-prefix-map={ relative_source_dir } /=' ,
478
484
'-fdebug-compilation-dir=/emsdk/emscripten' ]
@@ -488,15 +494,20 @@ def build_objects(self, build_dir):
488
494
By default, this builds all the source files returned by `self.get_files()`,
489
495
with the `cflags` returned by `self.get_cflags()`.
490
496
"""
497
+ print (f'system_libs: build_objects: deterministic_paths = { self .deterministic_paths } CIRCLECI = { CIRCLECI } ' )
491
498
batch_inputs = int (os .environ .get ('EMCC_BATCH_BUILD' , '1' ))
492
499
batches = {}
493
500
commands = []
494
501
objects = set ()
495
502
cflags = self .get_cflags ()
496
503
if self .deterministic_paths :
497
504
source_dir = utils .path_from_root ()
505
+ print (f' source_dir = { source_dir } ' )
506
+ print (f' build_dir = { build_dir } ' )
498
507
if batch_inputs :
508
+ print ('batch_inputs' )
499
509
relative_source_dir = os .path .relpath (source_dir , build_dir )
510
+ print (f' relative_source_dir = { relative_source_dir } ' )
500
511
cflags += [f'-ffile-prefix-map={ relative_source_dir } /=' ]
501
512
cflags += [f'-ffile-prefix-map={ source_dir } =/emsdk/emscripten' ,
502
513
'-fdebug-compilation-dir=/emsdk/emscripten' ]
0 commit comments