Skip to content

Commit

Permalink
use mops for all motoko benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyan-dfinity committed Sep 17, 2023
1 parent 9108afa commit 4c04d2f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dapps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include ../*.mk
all: build perf

motoko:
$(call build,motoko)
$(call build_with_mops,motoko)

rust:
$(call build,rust)
Expand Down
6 changes: 6 additions & 0 deletions dapps/motoko/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@
"basic_dao": {
"main": "basic_dao/Main.mo"
}
},
"defaults": {
"build": {
"packtool": "mops sources",
"args": ""
}
}
}
2 changes: 2 additions & 0 deletions dapps/motoko/mops.template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[dependencies]
base = "https://github.com/dfinity/motoko-base#moc-$MOC_VERSION"
2 changes: 1 addition & 1 deletion pub-sub/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include ../*.mk
all: build perf

motoko:
$(call build,motoko)
$(call build_with_mops,motoko)

rust:
$(call build,rust)
Expand Down
8 changes: 7 additions & 1 deletion pub-sub/motoko/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,11 @@
"sub": {
"main": "src/sub/Main.mo"
}
},
"defaults": {
"build": {
"packtool": "mops sources",
"args": ""
}
}
}
}
2 changes: 2 additions & 0 deletions pub-sub/motoko/mops.template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[dependencies]
base = "https://github.com/dfinity/motoko-base#moc-$MOC_VERSION"

0 comments on commit 4c04d2f

Please sign in to comment.