Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Sep 16, 2023
1 parent 835884c commit 58724bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sinol_make/commands/run/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,20 +1030,19 @@ def use_time():
return 'time', 'time'

timetool_path, timetool_name = None, None
default_timetool = use_oiejq if util.is_linux() else use_time
use_default_timetool = use_oiejq if util.is_linux() else use_time

if args.time_tool is None and self.config.get('sinol_undocumented_time_tool', '') != '':
if self.config.get('sinol_undocumented_time_tool', '') == 'oiejq':
timetool_path, timetool_name = use_oiejq()
else:
timetool_path, timetool_name = use_time()
elif args.time_tool is None:
timetool_path, timetool_name = default_timetool()
timetool_path, timetool_name = use_default_timetool()
elif args.time_tool == 'oiejq':
timetool_path, timetool_name = use_oiejq()
elif args.time_tool == 'time':
timetool_path, timetool_name = use_time()
print(timetool_path)
return compilers, timetool_path, timetool_name

def exit(self):
Expand Down

0 comments on commit 58724bf

Please sign in to comment.