# Copyright (C) 2019 Intel Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception WAMR_DIR=${PWD}/../../.. /opt/wasi-sdk/bin/clang \ --target=wasm32 -O3 \ -z stack-size=4096 -Wl,--initial-memory=65536 \ --sysroot=${WAMR_DIR}/wamr-sdk/app/libc-builtin-sysroot \ -Wl,--allow-undefined-file=${WAMR_DIR}/wamr-sdk/app/libc-builtin-sysroot/share/defined-symbols.txt \ -Wl,--export=main, \ -Wl,--export=__data_end, -Wl,--export=__heap_base \ -Wl,--no-threads,--strip-all,--no-entry \ -nostdlib -o test.wasm *.c #./jeffdump -o test_wasm.h -n wasm_test_file test.wasm