CI: github actions: add the output of $CC -dM -E-

Sometimes figuring what differs between platforms is useful to fix
build issues, to decide what ifdef to add for example. Let's always
call $CC -dM -E- before starting make.
This commit is contained in:
Willy Tarreau 2021-11-26 15:45:41 +01:00
parent 781f07a620
commit 4673c5e2c8
2 changed files with 6 additions and 0 deletions

View File

@ -75,6 +75,9 @@ jobs:
run: make -C addons/wurfl/dummy
- name: Compile HAProxy with ${{ matrix.CC }}
run: |
echo "::group::Show platform specific defines"
echo | ${{ matrix.CC }} -dM -xc -E -
echo "::endgroup::"
make -j$(nproc) all \
ERR=1 \
TARGET=${{ matrix.TARGET }} \

View File

@ -51,6 +51,9 @@ jobs:
zlib-devel
- name: Compile HAProxy with ${{ matrix.CC }}
run: |
echo "::group::Show platform specific defines"
echo | ${{ matrix.CC }} -dM -xc -E -
echo "::endgroup::"
make -j$(nproc) all \
ERR=1 \
TARGET=${{ matrix.TARGET }} \