Skip to content

Commit 824dd05

Browse files
authored
Merge pull request #40212 from apple/build-Don-t-overwrite-user-NINJA_STATUS
[build] Don't overwrite user NINJA_STATUS
2 parents d899dfd + 74b0bf5 commit 824dd05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/build-script

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ def initialize_runtime_environment():
105105
'WATCHOS_DEPLOYMENT_TARGET']:
106106
os.environ.pop(v, None)
107107

108-
# Set NINJA_STATUS to format ninja output
109-
os.environ['NINJA_STATUS'] = '[%f/%t][%p][%es] '
108+
# Provide a default NINJA_STATUS to format ninja output.
109+
if 'NINJA_STATUS' not in os.environ:
110+
os.environ['NINJA_STATUS'] = '[%f/%t][%p][%es] '
110111

111112

112113
class JSONDumper(json.JSONEncoder):

0 commit comments

Comments
 (0)