add linux x64 arch makefile

This commit is contained in:
2026-02-05 23:45:03 +01:00
parent 6381727851
commit 2f8f737bb8
3 changed files with 109 additions and 87 deletions

View File

@ -114,6 +114,23 @@ RUN mkdir build_libiwasm && cd build_libiwasm \
.. \
&& make -j$(nproc)
RUN mkdir build_libiwasm_64 && cd build_libiwasm_64 \
&& cmake \
-DWAMR_BUILD_PLATFORM=baremetal \
-DWAMR_BUILD_TARGET=X86_64 \
-DWAMR_BUILD_AOT=0 \
-DWAMR_BUILD_WAMR_COMPILER=0 \
-DWAMR_BUILD_INTERP=1 \
-DWAMR_BUILD_FAST_INTERP=0 \
-DWAMR_BUILD_JIT=0 \
-DWAMR_BUILD_FAST_JIT=0 \
-DWAMR_BUILD_LIBC_BUILTIN=1 \
-DWAMR_BUILD_LIBC_WASI=0 \
-DWAMR_BUILD_SIMD=0 \
-DCMAKE_COLOR_DIAGNOSTICS=ON \
.. \
&& make -j$(nproc)
# =============================================================================
FROM ghcr.io/webassembly/wasi-sdk:wasi-sdk-29
@ -129,6 +146,8 @@ RUN apt-get update \
neovim \
ranger \
wabt \
gdb \
valgrind \
fish \
grub-common \
xorriso \
@ -141,7 +160,8 @@ COPY --from=wamr-builder /wamr/product-mini/platforms/linux/build_iwasm /opt/wam
RUN ln -sf /opt/wamr/product-mini/platforms/linux/build_iwasm /opt/wamr-iwasm \
&& ln -sf /opt/wamr/wamr-compiler/build_wamrc /opt/wamr-wamrc \
&& ln -sf /opt/wamr/wamr-compiler/build_libvmlib /opt/wamr-libvmlib \
&& ln -sf /opt/wamr/build_libiwasm /opt/wamr-libiwasm
&& ln -sf /opt/wamr/build_libiwasm /opt/wamr-libiwasm \
&& ln -sf /opt/wamr/build_libiwasm_64 /opt/wamr-libiwasm-64
COPY ./examples /home/ubuntu/examples
WORKDIR /home/ubuntu/examples