Skip to content

Commit c530ad9

Browse files
authored
Improve debugging of configure scripts (#25293)
Improve debugging of configure scripts by printing the CWD to allow seeing which configure script is being run.
1 parent baa5581 commit c530ad9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

emcmake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def has_substr(args, substr):
6262
print('emcmake: no compatible cmake generator found; Please install ninja or mingw32-make, or specify a generator explicitly using -G', file=sys.stderr)
6363
return 1
6464

65-
print(f'configure: {shlex.join(args)}', file=sys.stderr)
65+
print(f'configure: {shlex.join(args)} in directory {os.getcwd()}', file=sys.stderr)
6666
try:
6767
shared.check_call(args)
6868
return 0

emconfigure.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
tests will work properly.
1717
"""
1818

19+
import os
1920
import shlex
2021
import sys
2122
from tools import building
@@ -48,7 +49,7 @@ def run():
4849
# compilation with emcc, but instead do builds natively with Clang. This
4950
# is a heuristic emulation that may or may not work.
5051
env['EMMAKEN_JUST_CONFIGURE'] = '1'
51-
print(f'configure: {shlex.join(args)}', file=sys.stderr)
52+
print(f'configure: {shlex.join(args)} in directory {os.getcwd()}', file=sys.stderr)
5253
try:
5354
shared.check_call(args, env=env)
5455
return 0

0 commit comments

Comments
 (0)