Skip to content

Commit

Permalink
fix(aot): fix aot compilation on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
eloparco committed Jan 31, 2024
1 parent 170ae35 commit ae444e1
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions .github/workflows/compilation_on_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,37 +96,48 @@ jobs:
cmake --build . --config Release --parallel 4
working-directory: wamr-compiler

- name: Test file in aot mode
run: |
mkdir build && cd build
cmake ..
cmake --build . --config Debug --parallel 4
./iwasm wasm-apps/no_pthread.wasm
../../../wamr-compiler/build/wamrc --size-level=0 --enable-multi-thread -o wasm-apps/no_pthread.aot wasm-apps/no_pthread.wasm
./iwasm wasm-apps/no_pthread.aot
working-directory: samples/wasi-threads

build_iwasm:
needs: [build_llvm_libraries]
runs-on: ${{ matrix.os }}
strategy:
matrix:
make_options_run_mode: [
# Running mode
$AOT_BUILD_OPTIONS,
# $AOT_BUILD_OPTIONS,
$CLASSIC_INTERP_BUILD_OPTIONS,
$FAST_INTERP_BUILD_OPTIONS,
$LLVM_LAZY_JIT_BUILD_OPTIONS,
$LLVM_EAGER_JIT_BUILD_OPTIONS,
# $FAST_INTERP_BUILD_OPTIONS,
# $LLVM_LAZY_JIT_BUILD_OPTIONS,
# $LLVM_EAGER_JIT_BUILD_OPTIONS,
]
make_options_feature: [
# Features
"-DWAMR_BUILD_CUSTOM_NAME_SECTION=1",
# doesn't support
#"-DWAMR_BUILD_DEBUG_AOT=1",
"-DWAMR_BUILD_DEBUG_INTERP=1",
"-DWAMR_BUILD_DUMP_CALL_STACK=1",
"-DWAMR_BUILD_LIB_PTHREAD=1",
"-DWAMR_BUILD_LIB_WASI_THREADS=1",
"-DWAMR_BUILD_LOAD_CUSTOM_SECTION=1",
"-DWAMR_BUILD_MINI_LOADER=1",
"-DWAMR_BUILD_MEMORY_PROFILING=1",
"-DWAMR_BUILD_MULTI_MODULE=1",
"-DWAMR_BUILD_PERF_PROFILING=1",
"-DWAMR_BUILD_REF_TYPES=1",
"-DWAMR_BUILD_SIMD=1",
"-DWAMR_BUILD_TAIL_CALL=1",
"-DWAMR_DISABLE_HW_BOUND_CHECK=1",
# "-DWAMR_BUILD_DEBUG_INTERP=1",
# "-DWAMR_BUILD_DUMP_CALL_STACK=1",
# "-DWAMR_BUILD_LIB_PTHREAD=1",
# "-DWAMR_BUILD_LIB_WASI_THREADS=1",
# "-DWAMR_BUILD_LOAD_CUSTOM_SECTION=1",
# "-DWAMR_BUILD_MINI_LOADER=1",
# "-DWAMR_BUILD_MEMORY_PROFILING=1",
# "-DWAMR_BUILD_MULTI_MODULE=1",
# "-DWAMR_BUILD_PERF_PROFILING=1",
# "-DWAMR_BUILD_REF_TYPES=1",
# "-DWAMR_BUILD_SIMD=1",
# "-DWAMR_BUILD_TAIL_CALL=1",
# "-DWAMR_DISABLE_HW_BOUND_CHECK=1",
]
os: [macos-latest]
platform: [darwin]
Expand Down Expand Up @@ -328,6 +339,9 @@ jobs:
cmake --build . --config Debug --parallel 4
./iwasm wasm-apps/no_pthread.wasm
../../../wamr-compiler/build/wamrc --enable-multi-thread -o wasm-apps/no_pthread.aot wasm-apps/no_pthread.wasm
./iwasm wasm-apps/no_pthread.aot
- name: Build Sample [shared-module]
run: |
cd samples/shared-module
Expand Down

0 comments on commit ae444e1

Please sign in to comment.