Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit d9c2508

Browse files
authored
Merge pull request #39 from intel/kai/fix-cmake-and-ci
cmake build and CI fixes
2 parents 6160a8f + 9593726 commit d9c2508

File tree

2 files changed

+74
-63
lines changed

2 files changed

+74
-63
lines changed

.github/workflows/configure.yml

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -21,67 +21,67 @@ jobs:
2121
build-dir: ../build
2222
src-dir: ../zlib
2323

24-
- name: Ubuntu GCC ARM SF
25-
os: ubuntu-latest
26-
compiler: arm-linux-gnueabi-gcc
27-
configure-args: --warn
28-
chost: arm-linux-gnueabi
29-
packages: qemu qemu-user gcc-arm-linux-gnueabi libc-dev-armel-cross
30-
qemu-run: qemu-arm -L /usr/arm-linux-gnueabi
31-
32-
- name: Ubuntu GCC ARM HF
33-
os: ubuntu-latest
34-
compiler: arm-linux-gnueabihf-gcc
35-
configure-args: --warn
36-
chost: arm-linux-gnueabihf
37-
packages: qemu qemu-user gcc-arm-linux-gnueabihf libc-dev-armhf-cross
38-
qemu-run: qemu-arm -L /usr/arm-linux-gnueabihf
39-
40-
- name: Ubuntu GCC AARCH64
41-
os: ubuntu-latest
42-
compiler: aarch64-linux-gnu-gcc
43-
configure-args: --warn
44-
chost: aarch64-linux-gnu
45-
packages: qemu qemu-user gcc-aarch64-linux-gnu libc-dev-arm64-cross
46-
qemu-run: qemu-aarch64 -L /usr/aarch64-linux-gnu
47-
48-
- name: Ubuntu GCC PPC
49-
os: ubuntu-latest
50-
compiler: powerpc-linux-gnu-gcc
51-
configure-args: --warn --static
52-
chost: powerpc-linux-gnu
53-
packages: qemu qemu-user gcc-powerpc-linux-gnu libc-dev-powerpc-cross
54-
qemu-run: qemu-ppc -L /usr/powerpc-linux-gnu
55-
cflags: -static
56-
ldflags: -static
57-
58-
- name: Ubuntu GCC PPC64
59-
os: ubuntu-latest
60-
compiler: powerpc64-linux-gnu-gcc
61-
configure-args: --warn --static
62-
chost: powerpc-linux-gnu
63-
packages: qemu qemu-user gcc-powerpc64-linux-gnu libc-dev-ppc64-cross
64-
qemu-run: qemu-ppc64 -L /usr/powerpc64-linux-gnu
65-
cflags: -static
66-
ldflags: -static
67-
68-
- name: Ubuntu GCC PPC64LE
69-
os: ubuntu-latest
70-
compiler: powerpc64le-linux-gnu-gcc
71-
configure-args: --warn
72-
chost: powerpc64le-linux-gnu
73-
packages: qemu qemu-user gcc-powerpc64le-linux-gnu libc-dev-ppc64el-cross
74-
qemu-run: qemu-ppc64le -L /usr/powerpc64le-linux-gnu
75-
76-
- name: Ubuntu GCC S390X
77-
os: ubuntu-latest
78-
compiler: s390x-linux-gnu-gcc
79-
configure-args: --warn --static
80-
chost: s390x-linux-gnu
81-
packages: qemu qemu-user gcc-s390x-linux-gnu libc-dev-s390x-cross
82-
qemu-run: qemu-s390x -L /usr/s390x-linux-gnu
83-
cflags: -static
84-
ldflags: -static
24+
# - name: Ubuntu GCC ARM SF
25+
# os: ubuntu-latest
26+
# compiler: arm-linux-gnueabi-gcc
27+
# configure-args: --warn
28+
# chost: arm-linux-gnueabi
29+
# packages: qemu qemu-user gcc-arm-linux-gnueabi libc-dev-armel-cross
30+
# qemu-run: qemu-arm -L /usr/arm-linux-gnueabi
31+
#
32+
# - name: Ubuntu GCC ARM HF
33+
# os: ubuntu-latest
34+
# compiler: arm-linux-gnueabihf-gcc
35+
# configure-args: --warn
36+
# chost: arm-linux-gnueabihf
37+
# packages: qemu qemu-user gcc-arm-linux-gnueabihf libc-dev-armhf-cross
38+
# qemu-run: qemu-arm -L /usr/arm-linux-gnueabihf
39+
#
40+
# - name: Ubuntu GCC AARCH64
41+
# os: ubuntu-latest
42+
# compiler: aarch64-linux-gnu-gcc
43+
# configure-args: --warn
44+
# chost: aarch64-linux-gnu
45+
# packages: qemu qemu-user gcc-aarch64-linux-gnu libc-dev-arm64-cross
46+
# qemu-run: qemu-aarch64 -L /usr/aarch64-linux-gnu
47+
#
48+
# - name: Ubuntu GCC PPC
49+
# os: ubuntu-latest
50+
# compiler: powerpc-linux-gnu-gcc
51+
# configure-args: --warn --static
52+
# chost: powerpc-linux-gnu
53+
# packages: qemu qemu-user gcc-powerpc-linux-gnu libc-dev-powerpc-cross
54+
# qemu-run: qemu-ppc -L /usr/powerpc-linux-gnu
55+
# cflags: -static
56+
# ldflags: -static
57+
#
58+
# - name: Ubuntu GCC PPC64
59+
# os: ubuntu-latest
60+
# compiler: powerpc64-linux-gnu-gcc
61+
# configure-args: --warn --static
62+
# chost: powerpc-linux-gnu
63+
# packages: qemu qemu-user gcc-powerpc64-linux-gnu libc-dev-ppc64-cross
64+
# qemu-run: qemu-ppc64 -L /usr/powerpc64-linux-gnu
65+
# cflags: -static
66+
# ldflags: -static
67+
#
68+
# - name: Ubuntu GCC PPC64LE
69+
# os: ubuntu-latest
70+
# compiler: powerpc64le-linux-gnu-gcc
71+
# configure-args: --warn
72+
# chost: powerpc64le-linux-gnu
73+
# packages: qemu qemu-user gcc-powerpc64le-linux-gnu libc-dev-ppc64el-cross
74+
# qemu-run: qemu-ppc64le -L /usr/powerpc64le-linux-gnu
75+
#
76+
# - name: Ubuntu GCC S390X
77+
# os: ubuntu-latest
78+
# compiler: s390x-linux-gnu-gcc
79+
# configure-args: --warn --static
80+
# chost: s390x-linux-gnu
81+
# packages: qemu qemu-user gcc-s390x-linux-gnu libc-dev-s390x-cross
82+
# qemu-run: qemu-s390x -L /usr/s390x-linux-gnu
83+
# cflags: -static
84+
# ldflags: -static
8585

8686
- name: macOS GCC
8787
os: macos-latest

CMakeLists.txt

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,21 +107,32 @@ set(ZLIB_SRCS
107107
adler32.c
108108
compress.c
109109
crc32.c
110+
crc_folding.c
110111
deflate.c
112+
deflate_medium.c
113+
deflate_quick.c
111114
gzclose.c
112115
gzlib.c
113116
gzread.c
114117
gzwrite.c
115-
inflate.c
116118
infback.c
117-
inftrees.c
118119
inffast.c
120+
inflate.c
121+
inftrees.c
122+
match.c
123+
slide_sse.c
119124
trees.c
120125
uncompr.c
121126
x86.c
122127
zutil.c
123128
)
124129

130+
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
131+
set_source_files_properties(crc_folding.c PROPERTIES COMPILE_OPTIONS "-mpclmul;-msse4")
132+
set_source_files_properties(slide_sse.c PROPERTIES COMPILE_OPTIONS -msse2)
133+
set_source_files_properties(deflate_quick.c PROPERTIES COMPILE_OPTIONS -msse4)
134+
endif()
135+
125136
if(NOT MINGW)
126137
set(ZLIB_DLL_SRCS
127138
win32/zlib1.rc # If present will override custom build rule below.

0 commit comments

Comments
 (0)