Skip to content

Commit

Permalink
nim: improve build time by 1.5x
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Apr 24, 2021
1 parent d7f0c38 commit ca37a4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmark
Original file line number Diff line number Diff line change
Expand Up @@ -851,10 +851,11 @@ def benchmark_Nim(execs, durs, gpaths, args, op, templated):
results = list()
lang = 'Nim'
exe = which('nim')
comp_flags = ['--hints:off']
comp_flags = ['--hints:off', '--checks:off', '--stacktrace:off']
if op == 'Check':
comp_flags += ['check']
elif op == 'Build':
# the bottleneck is clang compilation
comp_flags += ['c', '--gc:refc', '--opt:none'] # TODO detect when --gc:arc is available
else:
assert False
Expand Down

0 comments on commit ca37a4c

Please sign in to comment.