Skip to content

Commit 39b048a

Browse files
committed
Don't create build_script_log file with --dry-run flag
(cherry picked from commit f6d04a0)
1 parent a4a081e commit 39b048a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

utils/build-script

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,10 +1378,11 @@ def main_normal():
13781378
# Create build directory.
13791379
shell.makedirs(invocation.workspace.build_root)
13801380

1381-
# Create .build_script_log.
1382-
build_script_log = os.path.join(invocation.workspace.build_root,
1383-
".build_script_log")
1384-
open(build_script_log, 'w').close()
1381+
# Create .build_script_log
1382+
if not args.dry_run:
1383+
build_script_log = os.path.join(invocation.workspace.build_root,
1384+
".build_script_log")
1385+
open(build_script_log, 'w').close()
13851386

13861387
# Build ninja if required, which will update the toolchain.
13871388
if args.build_ninja:

0 commit comments

Comments
 (0)