Skip to content

Commit 1622440

Browse files
[ci] sanitize build under -fno-fast-math and -ffast-math
1 parent 86feda1 commit 1622440

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/sanitizer.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ defaults:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
name: 'sanitizer - ${{ matrix.sanitizer }}'
12+
name: 'sanitizer - ${{ matrix.sanitizer }} ${{ matrix.fastmath }}'
1313
strategy:
1414
matrix:
1515
sanitizer:
1616
- address
1717
- undefined
18+
fastmath:
19+
- "no-fast-math"
20+
- "fast-math"
1821
steps:
1922
- name: Checkout xsimd
2023
uses: actions/checkout@v3
@@ -28,7 +31,7 @@ jobs:
2831
-DDOWNLOAD_DOCTEST=ON \
2932
-DCMAKE_BUILD_TYPE=Release \
3033
-DCMAKE_CXX_COMPILER=clang++ \
31-
-DCMAKE_CXX_FLAGS='-fsanitize=${{ matrix.sanitizer }}' \
34+
-DCMAKE_CXX_FLAGS='-fsanitize=${{ matrix.sanitizer }} -f${{ matrix.fastmath }} -O0 -g -fno-inline' \
3235
-G Ninja
3336
- name: Build
3437
run: ninja -C _build

0 commit comments

Comments
 (0)