Skip to content

Commit 79c65c7

Browse files
committed
Add nolibc version of functions needed for log processing to wasm compilation
1 parent 24d34b7 commit 79c65c7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

wasm-compiler/compile-functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# constants
99
# the functions to compile
10-
FUNCTIONS="basic matmul matmac busy"
10+
FUNCTIONS="basic matmul matmac busy fan_out_nolibc handle_nolibc template_nolibc"
1111
BIN_DIR=bin
1212
FUNCTION_SDK_HEAP_SIZE=2048 # in 64KB pages, = 128MB
1313
FUNCTION_WASM_MIN_HEAP_SIZE=2 # in pages

wasm-compiler/make-wasm-binaries.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ make
3737
mkdir -p ../wasm-compiler/bin/wasm
3838
for d in ./*; do
3939
if [ -d "$d" ]; then
40-
if [ "$d" != "./CMakeFiles" ] && [ "$d" != "./functionInterface" ]; then
40+
if [ "$d" == "./example_app_nolibc" ]; then
41+
echo "TEST PRINT"
42+
cp "$d/template_nolibc" "../wasm-compiler/bin/wasm/template_nolibc.wasm"
43+
cp "$d/handle_nolibc" "../wasm-compiler/bin/wasm/handle_nolibc.wasm"
44+
cp "$d/fan_out_nolibc" "../wasm-compiler/bin/wasm/fan_out_nolibc.wasm"
45+
elif [ "$d" != "./CMakeFiles" ] && [ "$d" != "./functionInterface" ]; then
4146
cp "$d/$d" "../wasm-compiler/bin/wasm/$d.wasm"
4247
fi
4348
fi

wasm-compiler/sandboxed-function/macro-utils/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77
crate-type = ["proc-macro"]
88

99
[dependencies]
10-
proc-macro2 = "1.0.69"
10+
proc-macro2 = "1.0.86"
1111
syn = "2.0.38"
1212
sandbox-generated = { path = "../../rWasm/generated" }
1313
konst = "0.3.6"

0 commit comments

Comments
 (0)