Skip to content

Commit

Permalink
tc-build: Print total script durations
Browse files Browse the repository at this point in the history
Closes: ClangBuiltLinux#221
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Jan 22, 2023
1 parent 96a8d95 commit 9b5b38b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build-binutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import re
import shutil
import subprocess
import time
import utils


Expand Down Expand Up @@ -342,6 +343,8 @@ def build_targets(binutils_folder, build, install_folder, targets, host_arch):


def main():
script_start = time.time()

root_folder = pathlib.Path(__file__).resolve().parent

args = parse_parameters(root_folder)
Expand All @@ -366,6 +369,8 @@ def main():
build_targets(binutils_folder, build_folder, install_folder,
create_targets(targets), args.march)

print(f"\nTotal script duration: {utils.get_duration(script_start)}")


if __name__ == '__main__':
main()
4 changes: 4 additions & 0 deletions build-llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,8 @@ def has_4f158995b9cddae(llvm_folder):


def main():
script_start = time.time()

root_folder = pathlib.Path(__file__).resolve().parent

args = parse_parameters(root_folder)
Expand Down Expand Up @@ -1619,6 +1621,8 @@ def main():
root_folder)
do_multistage_build(args, dirs, env_vars)

print(f"Total script duration: {utils.get_duration(script_start)}")


if __name__ == '__main__':
main()

0 comments on commit 9b5b38b

Please sign in to comment.