Try fixing 32-bit build

extensions
Volodymyr Shymanskyy 5 years ago
parent 3f189e36ea
commit 922d75608e

@ -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

@ -15,6 +15,10 @@
//#error <wasi/core.h> is only supported on WASI platforms.
//#endif
#if !defined(__x86_64__)
# define _Static_assert(...)
#endif
#include <stddef.h>
#include <stdint.h>

Loading…
Cancel
Save