diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-06-14 14:36:34 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-06-14 18:45:58 +0300 |
commit | 836ee8e6c641732e9808338a592f54153921c176 (patch) | |
tree | 9db79e1cd7a3c747eae5f306dc1b9f84c40892cf | |
parent | 846ecb5db3301d9811007f4b835d77e1a7b4c915 (diff) | |
download | libmicrohttpd-836ee8e6c641732e9808338a592f54153921c176.tar.gz libmicrohttpd-836ee8e6c641732e9808338a592f54153921c176.zip |
CI: added usage of the configure's detection of the compiler flags
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b11b9bbd..c5e0283e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
@@ -26,8 +26,8 @@ variables: | |||
26 | DEBIAN_BUILD: buildenv-debian-stretch | 26 | DEBIAN_BUILD: buildenv-debian-stretch |
27 | MINGW_BUILD: buildenv-debian-mingw | 27 | MINGW_BUILD: buildenv-debian-mingw |
28 | GET_SOURCES_ATTEMPTS: "3" | 28 | GET_SOURCES_ATTEMPTS: "3" |
29 | CONFIGURE_BASE_FLAGS: --enable-asserts --cache-file cache/config.cache | 29 | CONFIGURE_BASE_FLAGS: --cache-file cache/config.cache |
30 | CFLAGS_DEFAULT: -O0 -g -ggdb3 -Wall -Wextra | 30 | CFLAGS_DEFAULT: "" |
31 | 31 | ||
32 | # In this build we combine | 32 | # In this build we combine |
33 | # * gcc | 33 | # * gcc |
@@ -37,7 +37,7 @@ gcc/Stretch: | |||
37 | script: | 37 | script: |
38 | - export CFLAGS="$CFLAGS_DEFAULT" | 38 | - export CFLAGS="$CFLAGS_DEFAULT" |
39 | - ./bootstrap | 39 | - ./bootstrap |
40 | - ./configure $CONFIGURE_BASE_FLAGS | 40 | - ./configure $CONFIGURE_BASE_FLAGS --enable-build-type=debug --disable-sanitizers |
41 | - make -j$(nproc) && make -k check | 41 | - make -j$(nproc) && make -k check |
42 | tags: | 42 | tags: |
43 | - shared | 43 | - shared |
@@ -61,7 +61,7 @@ Sanitizers/Stretch: | |||
61 | - ./bootstrap | 61 | - ./bootstrap |
62 | - export CC="ccache clang" | 62 | - export CC="ccache clang" |
63 | - export ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-3.8/bin/llvm-symbolizer | 63 | - export ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-3.8/bin/llvm-symbolizer |
64 | - ./configure $CONFIGURE_BASE_FLAGS --disable-doc --enable-sanitizers | 64 | - ./configure $CONFIGURE_BASE_FLAGS --disable-doc --enable-build-type=debug --enable-sanitizers |
65 | - make -j$(nproc) && make -k check | 65 | - make -j$(nproc) && make -k check |
66 | tags: | 66 | tags: |
67 | - shared | 67 | - shared |
@@ -79,7 +79,7 @@ Scan-Build/Debian: | |||
79 | script: | 79 | script: |
80 | - export CFLAGS="$CFLAGS_DEFAULT" | 80 | - export CFLAGS="$CFLAGS_DEFAULT" |
81 | - ./bootstrap | 81 | - ./bootstrap |
82 | - scan-build ./configure $CONFIGURE_BASE_FLAGS | 82 | - scan-build ./configure $CONFIGURE_BASE_FLAGS --enable-build-type=debug --disable-sanitizers |
83 | - scan-build -v -enable-checker security,nullability --status-bugs -o scan-build make -j$(nproc) | 83 | - scan-build -v -enable-checker security,nullability --status-bugs -o scan-build make -j$(nproc) |
84 | - scan-build -v -enable-checker security,nullability --status-bugs -o scan-build make -k check | 84 | - scan-build -v -enable-checker security,nullability --status-bugs -o scan-build make -k check |
85 | tags: | 85 | tags: |
@@ -99,7 +99,7 @@ MinGW/Debian: | |||
99 | - export CFLAGS="$CFLAGS_DEFAULT" | 99 | - export CFLAGS="$CFLAGS_DEFAULT" |
100 | - export CC="ccache $PREFIX-gcc" | 100 | - export CC="ccache $PREFIX-gcc" |
101 | - ./bootstrap | 101 | - ./bootstrap |
102 | - ./configure $CONFIGURE_BASE_FLAGS --build=x86_64-pc-linux-gnu --host=$PREFIX | 102 | - ./configure $CONFIGURE_BASE_FLAGS --build=x86_64-pc-linux-gnu --host=$PREFIX --enable-build-type=release |
103 | - make -j$(nproc) | 103 | - make -j$(nproc) |
104 | tags: | 104 | tags: |
105 | - shared | 105 | - shared |
@@ -110,7 +110,7 @@ dist/Stretch: | |||
110 | script: | 110 | script: |
111 | - export CFLAGS="$CFLAGS_DEFAULT" | 111 | - export CFLAGS="$CFLAGS_DEFAULT" |
112 | - ./bootstrap | 112 | - ./bootstrap |
113 | - ./configure $CONFIGURE_BASE_FLAGS | 113 | - ./configure $CONFIGURE_BASE_FLAGS --enable-build-type=release |
114 | - make -j$(nproc) dist | 114 | - make -j$(nproc) dist |
115 | tags: | 115 | tags: |
116 | - shared | 116 | - shared |