Skip to content

Commit

Permalink
Merge pull request #11 from timotheecour/pr_improve_nim
Browse files Browse the repository at this point in the history
nim: improve build time by 1.5x
  • Loading branch information
nordlow authored Apr 24, 2021
2 parents 4b50785 + ca37a4c commit 83f7bfe
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 @@ -874,10 +874,11 @@ def benchmark_Zig(results_map, execs, gpaths, args, op, templated):
def benchmark_Nim(results_map, execs, gpaths, args, op, templated):
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 83f7bfe

Please sign in to comment.