Skip to content

Commit f6d04a0

Browse files
committed
Don't create build_script_log file with --dry-run flag
1 parent 0809796 commit f6d04a0

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
@@ -1351,10 +1351,11 @@ def main_normal():
13511351
# Create build directory.
13521352
shell.makedirs(invocation.workspace.build_root)
13531353

1354-
# Create .build_script_log.
1355-
build_script_log = os.path.join(invocation.workspace.build_root,
1356-
".build_script_log")
1357-
open(build_script_log, 'w').close()
1354+
# Create .build_script_log
1355+
if not args.dry_run:
1356+
build_script_log = os.path.join(invocation.workspace.build_root,
1357+
".build_script_log")
1358+
open(build_script_log, 'w').close()
13581359

13591360
# Build ninja if required, which will update the toolchain.
13601361
if args.build_ninja:

0 commit comments

Comments
 (0)