Skip to content

Commit

Permalink
Do the compilation in setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperes committed Jan 31, 2024
1 parent 77ec386 commit 3372873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ if [ -z "$INPUT" ]; then
fi

set -e
# erlc +bin_opt_info -W src/erlang_1brc.erl
erlc -W src/erlang_1brc.erl || exit 1
/bin/time -f "Elapsed time: %e seconds (%E) (%P CPU)" \
erl \
-noinput \
-s erlang_1brc run "$1" \
-s erlang_1brc main "$1" \
-eval "erlang:halt()."
1 change: 1 addition & 0 deletions setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/bin/bash
erlc -W src/erlang_1brc.erl

0 comments on commit 3372873

Please sign in to comment.