Skip to content

Commit 13f6d7e

Browse files
authored
chore: improvements (#118)
* chore: adds rust-toolchain to specify the default rustc version to be used * Fix compatibility issues for macOS
1 parent d3e6829 commit 13f6d7e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

rust-toolchain

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
channel = "1.77.0"

scripts/build-tracing-runtime.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ chmod -R 777 runtime
2222

2323

2424
# get the toolchain rust version
25-
RUST_VERSION=$(cat rust-toolchain | grep channel | grep --only-matching --perl-regexp "(\d+\.){2}\d+")
25+
RUST_VERSION=$(cat rust-toolchain | grep channel | grep --only-matching -E "(\d+\.){2}\d+")
2626
# if the version is empty, default to 1.69.0 (that is for runtime before 2300)
2727
if [ -z "$RUST_VERSION" ]; then
2828
RUST_VERSION="1.69.0"
@@ -45,6 +45,7 @@ for RUNTIME_NAME in ${ALL_RUNTIMES_NAMES[@]}; do
4545
CMD="docker run \
4646
-i \
4747
--rm \
48+
--platform linux/amd64 \
4849
-e PACKAGE=$RUNTIME_NAME-runtime \
4950
-e RUNTIME_DIR=$RUNTIME_DIR \
5051
-e WASM_BUILD_STD=0 \

0 commit comments

Comments
 (0)