]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Added powerpc instances to CI for configure.
authorNathan Moinvaziri <nathan@nathanm.com>
Thu, 2 Jul 2020 01:39:22 +0000 (18:39 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 2 Jul 2020 11:13:11 +0000 (13:13 +0200)
.github/workflows/cmake.yml
.github/workflows/configure.yml
configure

index 4820614a03c6d9a075e07b0da09203c8b3c10cf4..1d2b08115a51f66855d732e423807d13d78795eb 100644 (file)
@@ -24,11 +24,11 @@ jobs:
           Ubuntu GCC ARM HF Compat No Opt,
           Ubuntu GCC AARCH64,
           Ubuntu GCC AARCH64 Compat No Opt,
-          Ubuntu GCC PPC Compat,
-          Ubuntu GCC PPC64 Compat,
-          Ubuntu GCC PPC64LE Compat,
-          Ubuntu GCC SPARC64 Compat,
-          Ubuntu GCC S390X Compat,
+          Ubuntu GCC PPC,
+          Ubuntu GCC PPC64,
+          Ubuntu GCC PPC64LE,
+          Ubuntu GCC SPARC64,
+          Ubuntu GCC S390X,
           Ubuntu Clang,
           Ubuntu Clang Inflate Strict,
           Ubuntu Clang Inflate Allow Invalid Dist,
@@ -153,45 +153,44 @@ jobs:
             packages: qemu gcc-aarch64-linux-gnu libc-dev-arm64-cross
             codecov: ubuntu_gcc_aarch64_compat_no_opt
 
-          - name: Ubuntu GCC PPC Compat
+          - name: Ubuntu GCC PPC
             os: ubuntu-latest
             compiler: powerpc-linux-gnu-gcc
-            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-powerpc.cmake -DZLIB_COMPAT=ON
+            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-powerpc.cmake
             packages: qemu gcc-powerpc-linux-gnu libc-dev-powerpc-cross
-            codecov: ubuntu_gcc_ppc_compat
+            ldflags: -static
+            codecov: ubuntu_gcc_ppc
 
-            cflags: -static
-          - name: Ubuntu GCC PPC64 Compat
+          - name: Ubuntu GCC PPC64
             os: ubuntu-latest
             compiler: powerpc64-linux-gnu-gcc
-            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-powerpc64.cmake -DZLIB_COMPAT=ON
+            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-powerpc64.cmake
             packages: qemu gcc-powerpc64-linux-gnu libc-dev-ppc64-cross
-            cflags: -static
-            codecov: ubuntu_gcc_ppc64_compat
+            ldflags: -static
+            codecov: ubuntu_gcc_ppc64
 
-          - name: Ubuntu GCC PPC64LE Compat
+          - name: Ubuntu GCC PPC64LE
             os: ubuntu-latest
             compiler: powerpc64le-linux-gnu-gcc
-            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-powerpc64le.cmake -DZLIB_COMPAT=ON
+            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-powerpc64le.cmake
             packages: qemu gcc-powerpc64le-linux-gnu libc-dev-ppc64el-cross
-            cflags: -static
-            codecov: ubuntu_gcc_ppc64le_compat
+            codecov: ubuntu_gcc_ppc64le
 
-          - name: Ubuntu GCC SPARC64 Compat
+          - name: Ubuntu GCC SPARC64
             os: ubuntu-latest
             compiler: sparc64-linux-gnu-gcc
-            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-sparc64.cmake -DZLIB_COMPAT=ON
+            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-sparc64.cmake
             packages: qemu gcc-sparc64-linux-gnu libc-dev-sparc64-cross
-            cflags: -static
-            codecov: ubuntu_gcc_sparc64_compat
+            ldflags: -static
+            codecov: ubuntu_gcc_sparc64
 
-          - name: Ubuntu GCC S390X Compat
+          - name: Ubuntu GCC S390X
             os: ubuntu-latest
             compiler: s390x-linux-gnu-gcc
-            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-s390x.cmake -DZLIB_COMPAT=ON
+            cmake-args: -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain-s390x.cmake
             packages: qemu gcc-s390x-linux-gnu libc-dev-s390x-cross
-            cflags: -static
-            codecov: ubuntu_gcc_s390x_compat
+            ldflags: -static
+            codecov: ubuntu_gcc_s390x
 
           - name: Ubuntu Clang
             os: ubuntu-latest
index 55d669e377cf4514c8ebf9be3aff65afea29ea61..29259f829a7f114ea38df52d236e1cd31dcebbda 100644 (file)
@@ -18,6 +18,9 @@ jobs:
           Ubuntu GCC ARM HF Compat No Opt,
           Ubuntu GCC AARCH64,
           Ubuntu GCC AARCH64 Compat No Opt,
+          Ubuntu GCC PPC,
+          Ubuntu GCC PPC64,
+          Ubuntu GCC PPC64LE,
           macOS GCC
         ]
         include:
@@ -87,6 +90,31 @@ jobs:
             chost: aarch64-linux-gnu
             packages: qemu gcc-aarch64-linux-gnu libc-dev-arm64-cross
 
+          - name: Ubuntu GCC PPC
+            os: ubuntu-latest
+            compiler: powerpc-linux-gnu-gcc
+            configure-args: --warn --static
+            chost: powerpc-linux-gnu
+            packages: qemu gcc-powerpc-linux-gnu libc-dev-powerpc-cross
+            cflags: -static
+            ldflags: -static
+
+          - name: Ubuntu GCC PPC64
+            os: ubuntu-latest
+            compiler: powerpc64-linux-gnu-gcc
+            configure-args: --warn --static
+            chost: powerpc-linux-gnu
+            packages: qemu gcc-powerpc64-linux-gnu libc-dev-ppc64-cross
+            cflags: -static
+            ldflags: -static
+
+          - name: Ubuntu GCC PPC64LE
+            os: ubuntu-latest
+            compiler: powerpc64le-linux-gnu-gcc
+            configure-args: --warn
+            chost: powerpc64le-linux-gnu
+            packages: qemu gcc-powerpc64le-linux-gnu libc-dev-ppc64el-cross
+
           - name: macOS GCC
             os: macOS-latest
             compiler: gcc
@@ -109,6 +137,8 @@ jobs:
         ${{ matrix.build-src-dir || '.' }}/configure ${{ matrix.configure-args }}
       env:
         CC: ${{ matrix.compiler }}
+        CFLAGS: ${{ matrix.cflags }}
+        LDFLAGS: ${{ matrix.ldflags }}
         CHOST: ${{ matrix.chost }}
         CI: true
 
index 53fc68445f4236efe971e3429c7b64c94974ccaf..14a41526664486f042749b1f8fda507b0559385b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1390,14 +1390,13 @@ case "${ARCH}" in
 
         if test $without_optimizations -eq 0; then
             if test $HAVE_POWER8 -eq 1; then
+                CFLAGS="${CFLAGS} -DPOWER8 -DPOWER_FEATURES -DPOWER8_VSX_ADLER32 -DPOWER8_VSX_SLIDEHASH"
+                SFLAGS="${SFLAGS} -DPOWER8 -DPOWER_FEATURES -DPOWER8_VSX_ADLER32 -DPOWER8_VSX_SLIDEHASH"
+
                 ARCH_STATIC_OBJS="${ARCH_STATIC_OBJS} adler32_power8.o power.o slide_hash_power8.o"
                 ARCH_SHARED_OBJS="${ARCH_SHARED_OBJS} adler32_power8.lo power.lo slide_hash_power8.lo"
-                POWERFLAGS="-DPOWER8 -DPOWER_FEATURES -DPOWER8_VSX_ADLER32 -DPOWER8_VSX_SLIDEHASH"
             fi
         fi
-
-        CFLAGS="${CFLAGS} ${POWERFLAGS}"
-        SFLAGS="${SFLAGS} ${POWERFLAGS}"
     ;;
     s390x)
         [ ! -z $CROSS_PREFIX ] && QEMU_ARCH=s390x