-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·38 lines (28 loc) · 1018 Bytes
/
build
File metadata and controls
executable file
·38 lines (28 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
set -euox pipefail
export GRAMMAR_PATH=grammars
mkdir -p generated
export SILVER_GEN=generated
# Need to bump up the heap space to run the MWDA:
export SVJVM_FLAGS="-Xmx6G -Xss25m"
SV_FLAGS="$@"
# Build host
silver -o foil.jar $SV_FLAGS edu:umn:cs:melt:foil:host
export GRAMMAR_PATH="foil.jar:$GRAMMAR_PATH"
# Build extended Silver compiler
silver -o silver_compiler.jar $SV_FLAGS edu:umn:cs:melt:foil:composed:silver_compiler
# Build extensions
build_extension() {
silver-custom silver_compiler.jar -o foil-$1.jar $SV_FLAGS edu:umn:cs:melt:foil:extensions:$1
export GRAMMAR_PATH="foil-$1.jar:$GRAMMAR_PATH"
}
build_extension complex
build_extension closure
build_extension datatype
build_extension intconst
build_extension forloop
# Build compiler
#silver -o compiler.jar $SV_FLAGS edu:umn:cs:melt:foil:composed:host
silver -o compiler.jar $SV_FLAGS edu:umn:cs:melt:foil:composed:with_all
# Perform MDA tests
silver --dont-translate $SV_FLAGS edu:umn:cs:melt:foil:composed:mda_tests