Update build.yml to fix warnings during macOS CI build

This will close issue https://github.com/avrdudes/avrdude/issues/2088.
This commit is contained in:
mcuee
2026-04-17 10:23:58 +08:00
committed by GitHub
parent ce76a30365
commit c9cad0f174

View File

@@ -250,8 +250,8 @@ jobs:
- name: Configure - name: Configure
run: >- run: >-
cmake cmake
-D CMAKE_C_FLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/flex/include" -D CMAKE_C_FLAGS="-I/opt/homebrew/include"
-D CMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/Cellar -L/opt/homebew/opt/flex/lib" -D CMAKE_EXE_LINKER_FLAGS="-L/opt/homebrew/Cellar"
-D DEBUG_CMAKE=1 -D DEBUG_CMAKE=1
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
-B build -B build
@@ -314,8 +314,8 @@ jobs:
mkdir _ambuild && cd _ambuild mkdir _ambuild && cd _ambuild
CFLAGS="-I/opt/homebrew/include -I/opt/homebrew/opt/flex/include" CFLAGS="-I/opt/homebrew/include"
LDFLAGS="-L/opt/homebrew/lib -L/opt/homebrew/opt/bison/lib" LDFLAGS="-L/opt/homebrew/lib"
../src/configure ../src/configure
--enable-option-checking=fatal --enable-option-checking=fatal