Skip to content

Commit fa4abe7

Browse files
Test compilation on 32 bit target
1 parent 6424c7f commit fa4abe7

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.azure-pipelines/azure-pipelines-linux-gcc.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
enable_xtl_complex: 1
3030
gcc_9:
3131
gcc_version: '9'
32+
gcc_9_m32:
33+
gcc_version: '9'
34+
i686: 1
3235
pool:
3336
vmImage: ubuntu-16.04
3437
variables:
@@ -49,6 +52,12 @@ jobs:
4952
sudo apt-get --no-install-suggests --no-install-recommends install qemu qemu-system-aarch64
5053
fi
5154
fi
55+
if [[ $(i686) ]]; then
56+
sudo dpkg --add-architecture i386
57+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
58+
sudo apt-get update
59+
sudo apt-get --no-install-suggests --no-install-recommends install gcc-$(gcc_version)-multilib g++-$(gcc_version)-multilib linux-libc-dev:i386
60+
fi
5261
displayName: Install build toolchain
5362
5463
- bash: echo "##vso[task.prependpath]$CONDA/bin"

.azure-pipelines/unix-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ steps:
3939
if [[ $(force_no_instr_set) == 1 ]]; then
4040
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DXSIMD_FORCE_X86_INSTR_SET=0 -DXSIMD_FORCE_X86_AMD_INSTR_SET=0";
4141
fi
42+
if [[ $(i686) == 1 ]] ; then
43+
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DCMAKE_CXX_FLAGS='-m32'"
44+
fi
4245
4346
cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX $CMAKE_EXTRA_ARGS -DDOWNLOAD_GTEST=ON -DXSIMD_ENABLE_WERROR=1 $(Build.SourcesDirectory)
4447
displayName: Configure xsimd

0 commit comments

Comments
 (0)