0
0
mirror of https://github.com/madler/zlib.git synced 2026-01-18 17:11:27 +01:00

Add compiler options to standards in c-std.yml for ZLIB_INSECURE.

This commit is contained in:
Mark Adler
2026-01-06 12:55:54 -06:00
parent 42ca9c2c9b
commit f81690699a

View File

@@ -51,17 +51,14 @@ jobs:
- name: c89
value: c89
compiler-opt: -DZIP_INSECURE
cmake-opt: -DZIP_INSECURE
- name: gnu89
value: gnu89
compiler-opt: -DZIP_INSECURE
cmake-opt: -DZIP_INSECURE
- name: c94
value: iso9899:199409
compiler-opt: -DZIP_INSECURE
cmake-opt: -DZIP_INSECURE
- name: c99
value: c99
@@ -124,7 +121,7 @@ jobs:
./configure
env:
CC: ${{ matrix.compiler }}
CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
- name: Compile source code (configure)
if: matrix.builder == 'configure'
@@ -142,7 +139,7 @@ jobs:
cmake -S . -B ./build1 -D CMAKE_BUILD_TYPE=Release ${{ matrix.os.cmake-opt }} -DZLIB_BUILD_TESTING=OFF
env:
CC: ${{ matrix.compiler }}
CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Werror -Wall -Wextra
- name: Generate project files with tests (cmake)
if: matrix.builder == 'cmake'
@@ -150,7 +147,7 @@ jobs:
cmake -S . -B ./build2 -D CMAKE_BUILD_TYPE=Release ${{ matrix.os.cmake-opt }} -DZLIB_BUILD_MINIZIP=ON -DMINIZIP_ENABLE_BZIP2=OFF
env:
CC: ${{ matrix.compiler }}
CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.arch.compiler-opt }} -Wall -Wextra
CFLAGS: -std=${{ matrix.std.value }} ${{ matrix.std.compiler-opt }} ${{ matrix.arch.compiler-opt }} -Wall -Wextra
- name: Compile source code (cmake)
if: matrix.builder == 'cmake'