mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-07 12:16:24 +00:00

Before adding the new bindings: 1. Moved wasm-c-api in a subfolder wasmcapi in the package. 2. Adapted the tests to be able to run in this new structure. New: 1. Added the WAMR API in another folder wamrapi in the same level as wasm-c-api. 2. Created an OOP proposal. 3. Added an example using this proposal.
12 lines
334 B
Bash
12 lines
334 B
Bash
#!/bin/sh
|
|
|
|
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
/opt/wasi-sdk/bin/clang \
|
|
-O0 -z stack-size=4096 -Wl,--initial-memory=65536 \
|
|
-Wl,--strip-all,--no-entry -nostdlib \
|
|
-Wl,--export=sum\
|
|
-Wl,--allow-undefined \
|
|
-o test.wasm sum.c
|