diff options
| author | jvoisin | 2026-03-13 01:07:17 +0100 |
|---|---|---|
| committer | jvoisin | 2026-03-13 01:11:26 +0100 |
| commit | c1642e5a43de3affa75d52c3577ee1be4c874a5d (patch) | |
| tree | 2684196a7af91ff9b6c97a91e94fb92eb6ef9f24 /.github/workflows/testsuite.yaml | |
| parent | 9db427391bb5dc5b2722345cb91edbba65c10623 (diff) | |
Fixes compilation with clang and -D_FORTIFY_SOURCE=2
This commit fixes the typo pass_object_size__ for pass_object_size. It also
adds tests in the CI to prevent this from happening again.
Ref https://clang.llvm.org/docs/AttributeReference.html#pass-object-size-pass-dynamic-object-size
Co-Authored-By: Sertonix
Diffstat (limited to '.github/workflows/testsuite.yaml')
| -rw-r--r-- | .github/workflows/testsuite.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/testsuite.yaml b/.github/workflows/testsuite.yaml index 8de273c..3185f0c 100644 --- a/.github/workflows/testsuite.yaml +++ b/.github/workflows/testsuite.yaml | |||
| @@ -104,3 +104,30 @@ jobs: | |||
| 104 | - name: Building with gcc | 104 | - name: Building with gcc |
| 105 | shell: bash | 105 | shell: bash |
| 106 | run: CFLAGS=-std=${{ matrix.version }} make -C tests clean gcc run | 106 | run: CFLAGS=-std=${{ matrix.version }} make -C tests clean gcc run |
| 107 | |||
| 108 | fortify_level: | ||
| 109 | runs-on: ubuntu-latest | ||
| 110 | strategy: | ||
| 111 | matrix: | ||
| 112 | level: [2, 3] | ||
| 113 | steps: | ||
| 114 | - name: Checking out the code | ||
| 115 | uses: actions/checkout@v3 | ||
| 116 | - name: Cache musl toolchain | ||
| 117 | uses: actions/cache@v3 | ||
| 118 | id: cache-musl | ||
| 119 | with: | ||
| 120 | path: x86_64-linux-musl-native | ||
| 121 | key: musl | ||
| 122 | - name: Downloading musl-based toolchain | ||
| 123 | if: steps.cache-musl.outputs.cache-hit != 'true' | ||
| 124 | run: wget --quiet https://dustri.org/x86_64-linux-musl-native.tgz | ||
| 125 | - name: Extracting musl-based toolchain | ||
| 126 | if: steps.cache-musl.outputs.cache-hit != 'true' | ||
| 127 | run: tar xzf ./x86_64-linux-musl-native.tgz | ||
| 128 | - name: Building with clang | ||
| 129 | shell: bash | ||
| 130 | run: _FORTIFY_SOURCE=${{ matrix.level }} make -C tests clean clang | ||
| 131 | - name: Building with gcc | ||
| 132 | shell: bash | ||
| 133 | run: _FORTIFY_SOURCE=${{ matrix.level }} make -C tests clean gcc | ||
