]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CI: Use CC="gcc -m32" to get i386 compiler on x86-64
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 24 Jun 2024 12:24:52 +0000 (15:24 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 6 Sep 2024 16:15:14 +0000 (19:15 +0300)
The old method put it in CFLAGS which is a wrong place because
config.guess doesn't read CFLAGS.

(cherry picked from commit dbcdabf68fee9ed694b68c3a82e6adbeff20b679)

.github/workflows/ci.yml

index b673b88b3b84ea64b99d43482df10e402bedacda..253d7889e77cb1b822e8af5832ff4c88f5a21d27 100644 (file)
@@ -70,11 +70,11 @@ jobs:
       # done first.
       - name: Build 32-bit
         if: ${{ matrix.os == 'ubuntu-latest' && matrix.build_system == 'autotools' }}
-        run: ./build-aux/ci_build.bash -b autotools -p build -f "-m32"
+        run: ./build-aux/ci_build.bash -b autotools -p build -m "gcc -m32"
       - name: Test 32-bit
         if: ${{ matrix.os == 'ubuntu-latest' && matrix.build_system == 'autotools' }}
         run: |
-            ./build-aux/ci_build.bash -b autotools -p test -f "-m32" -n 32_bit
+            ./build-aux/ci_build.bash -b autotools -p test -m "gcc -m32" -n 32_bit
             cd ../xz_build && make distclean
 
       # The sandbox must be disabled because it will prevent access to