]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: github actions: add the output of $CC -dM -E-
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Nov 2021 14:45:41 +0000 (15:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Nov 2021 16:58:42 +0000 (17:58 +0100)
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.

.github/workflows/vtest.yml
.github/workflows/windows.yml

index 4cdbdce5b45aff68663be118e2d1aa971c16cd0f..b75329dbd4bf77c43bc2b43acd2ec309231d0331 100644 (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 }} \
index 42bb4e8c927ffd3e81796a35521f7e473f2f3e13..4d14d4817bd05b10e6db2003d93e5a50aa804455 100644 (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 }} \