]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add a 32-bit build target, using multilib (-m32)
authorAnders F Björklund <anders.f.bjorklund@gmail.com>
Sun, 8 Apr 2018 11:51:06 +0000 (13:51 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 23 Apr 2018 19:51:15 +0000 (21:51 +0200)
Use gcc-multilib rather than doing a full cross-compile.
But set the --host, just in case something is listening.

.travis.sh
.travis.yml
.travis/Dockerfile

index 63bec03eae099836132a4e5421e95e810e991a93..ad646783857250e92e15fbd714096650ec593792 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh -ex
 make clean
-make travis CC=clang
 make travis CC=gcc
+make travis CC=clang
+make travis CC=gcc CFLAGS="-m32 -g -O2" HOST="--host=i386-linux-gnu"
 make travis CC=i686-w64-mingw32-gcc HOST="--host=i686-w64-mingw32" TEST="unittest/run.exe"
 make travis CC=clang CFLAGS="-fsanitize=undefined" ASAN_OPTIONS="detect_leaks=0"
 make travis CC=clang CFLAGS="-fsanitize=address -g" ASAN_OPTIONS="detect_leaks=0"
index 7cb987ce44487210ca94648441fa79231c4abd53..31438d6ed111617a509fb7dc2e6e91d6baca4caa 100644 (file)
@@ -6,17 +6,25 @@ addons:
             - gperf
             - elfutils
             - zlib1g-dev
+            - lib32z1-dev
 
 os:
     - linux
     - osx
 
 compiler:
-    - clang
     - gcc
+    - clang
 
 matrix:
     include:
+        - os: linux
+          compiler: gcc
+          env: CFLAGS="-m32 -g -O2" HOST="--host=i386-linux-gnu"
+          addons:
+              apt:
+                  packages:
+                      - gcc-multilib
         - os: linux
           compiler: i686-w64-mingw32-gcc
           env: HOST="--host=i686-w64-mingw32" TEST="unittest/run.exe"
index 37ec588853a784dc639369493b5c4063e74334e0..5f837b0ed1e6767a7768089169d9e789bbf45627 100644 (file)
@@ -13,6 +13,8 @@ RUN apt-get -qq update && apt-get install -y --no-install-recommends \
                 libc6-dev \
                 gcc \
                 clang \
+                libc6-dev-i386 \
+                gcc-multilib \
                 gcc-mingw-w64 \
                 make \
                 autoconf \
@@ -31,4 +33,5 @@ RUN apt-get -qq update && apt-get install -y --no-install-recommends \
                 gperf \
                 elfutils \
                 zlib1g-dev \
+                lib32z1-dev \
         && rm -rf /var/lib/apt/lists/*