File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,22 +27,17 @@ jobs:
2727 if : ${{ matrix.sys.compiler == 'g++' }}
2828 run : |
2929 echo "CXXFLAGS=-Wno-noexcept-type -Wno-stringop-overflow -Wno-maybe-uninitialized" >> $GITHUB_ENV
30- - name : Set emulated arch
31- run : |
32- SIZE="${{ matrix.sys.size }}"
33- echo "add_compile_definitions(\"XSIMD_DEFAULT_ARCH=emulated<${SIZE}>\")" > /tmp/emulated.cmake
34- echo "add_compile_definitions(XSIMD_WITH_EMULATED=1)" >> /tmp/emulated.cmake
3530 - name : Configure build
3631 run : |
32+ EMULATED_FLAGS='-DXSIMD_DEFAULT_ARCH=emulated<${{ matrix.sys.size }}> -DXSIMD_WITH_EMULATED=1'
3733 cmake -B_build \
3834 -DBUILD_TESTS=ON \
3935 -DBUILD_BENCHMARK=ON \
4036 -DBUILD_EXAMPLES=ON \
4137 -DCMAKE_BUILD_TYPE=Release \
4238 -DCMAKE_CXX_COMPILER=${{ matrix.sys.compiler }} \
4339 -DXSIMD_ENABLE_WERROR=ON \
44- -DCMAKE_PROJECT_INCLUDE=/tmp/emulated.cmake \
45- -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
40+ -DCMAKE_CXX_FLAGS="$EMULATED_FLAGS $CXXFLAGS" \
4641 -GNinja
4742 - name : Build
4843 run : ninja -C _build
You can’t perform that action at this time.
0 commit comments