File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 2626import shutil
2727import sys
2828import tarfile
29- import time
3029from dataclasses import dataclass
3130from enum import Enum , auto , unique
3231
@@ -171,10 +170,8 @@ def make_relative(filename):
171170 reproduce_file .add (rsp_name , os .path .join (root , 'response.txt' ))
172171
173172
174- #
175- # Main run() function
176- #
177- def run (args ):
173+ @ToolchainProfiler .profile ()
174+ def main (args ):
178175 if shared .run_via_emxx :
179176 clang = shared .CLANG_CXX
180177 else :
@@ -591,14 +588,6 @@ def compile_source_file(input_file):
591588 return [f .value for f in linker_args ]
592589
593590
594- @ToolchainProfiler .profile ()
595- def main (args ):
596- start_time = time .time ()
597- ret = run (args )
598- logger .debug ('total time: %.2f seconds' , (time .time () - start_time ))
599- return ret
600-
601-
602591if __name__ == '__main__' :
603592 try :
604593 sys .exit (main (sys .argv ))
You can’t perform that action at this time.
0 commit comments