@@ -270,7 +270,15 @@ def execute_command(*run_args, **run_kwargs):
270270 cwd = run_kwargs .get ('cwd' )
271271 print_cwd = f"In dir: { cwd } " if cwd else f"in current dir: { os .getcwd ()} "
272272 print_args = shlex .join (command_args )
273- print (f"{ print_cwd } ; running command: { print_args } " , flush = True )
273+ output = f"{ print_cwd } ; running command:\n { print_args } "
274+ env_arg = run_kwargs .get ('env' )
275+ env_change = set (env_arg .items ()) - set (os .environ .items ()) if env_arg else None
276+ if env_change :
277+ output += "\n ... with extra/modified environment:"
278+ for k_v in env_change :
279+ output += f"\n { k_v [0 ]} ={ k_v [1 ]} "
280+ print (output , flush = True )
281+
274282
275283 if run_kwargs .get ('check' ) is None :
276284 run_kwargs ['check' ] = True
@@ -568,8 +576,6 @@ def build_platforms():
568576 TOOLCHAIN_VER = platform_dict ["XTENSA_TOOLS_VERSION" ]
569577 XTENSA_CORE = platform_dict ["XTENSA_CORE" ]
570578 platf_build_environ ["TOOLCHAIN_VER" ] = TOOLCHAIN_VER
571- print (f"XTENSA_TOOLCHAIN_PATH={ XTENSA_TOOLCHAIN_PATH } " )
572- print (f"TOOLCHAIN_VER={ TOOLCHAIN_VER } " )
573579
574580 # Set variables expected by xcc toolchain. CMake cannot set (evil) build-time
575581 # environment variables at configure time:
@@ -578,7 +584,6 @@ def build_platforms():
578584 TOOLCHAIN_VER ).absolute ())
579585 XTENSA_SYSTEM = str (pathlib .Path (XTENSA_BUILDS_DIR , XTENSA_CORE , "config" ).absolute ())
580586 platf_build_environ ["XTENSA_SYSTEM" ] = XTENSA_SYSTEM
581- print (f"XTENSA_SYSTEM={ XTENSA_SYSTEM } " )
582587
583588 platform_build_dir_name = f"build-{ platform } "
584589
0 commit comments