diff --git a/.github/workflows/spec-tests.yml b/.github/workflows/spec-tests.yml index 2b1ee5d..42e6131 100644 --- a/.github/workflows/spec-tests.yml +++ b/.github/workflows/spec-tests.yml @@ -10,20 +10,21 @@ jobs: fail-fast: false matrix: compiler: [gcc, clang] - flags: ["", "-D BUILD_32BIT=1"] + flags: ["", "-m32"] steps: - uses: actions/checkout@v1 - - name: Install prerequisites + - name: Install multilib + if: contains(matrix.flags, '-m32') run: sudo apt-get install gcc-multilib - name: Run CMake env: CC: ${{ matrix.compiler }} + CFLAGS: ${{ matrix.flags }} run: | mkdir build cd build cmake .. - cmake ${{ matrix.flags }} .. - name: Build run: | cmake --build build diff --git a/source/extra/wasi_core.h b/source/extra/wasi_core.h index 1576e94..d029ebd 100644 --- a/source/extra/wasi_core.h +++ b/source/extra/wasi_core.h @@ -15,6 +15,10 @@ //#error is only supported on WASI platforms. //#endif +#if !defined(__x86_64__) +# define _Static_assert(...) +#endif + #include #include