# Job 2: Build on Linux with native 32-bit GCC
- os: linux
compiler: gcc
- env: T="Linux GCC 32-bit" VERBOSE=1 CFLAGS="-m32 -g -O2" CXXFLAGS="-m32 -g -O2" LDFLAGS="-m32" CMAKE_PARAMS="-DUSE_LIBZSTD_FROM_INTERNET=ON" ENABLE_CACHE_CLEANUP_TESTS=1
+ env: T="Linux GCC 32-bit" VERBOSE=1 CFLAGS="-m32 -g -O2" CXXFLAGS="-m32 -g -O2" LDFLAGS="-m32" CMAKE_PARAMS="-DZSTD_FROM_INTERNET=ON" ENABLE_CACHE_CLEANUP_TESTS=1
addons:
apt:
packages:
# Job 5: Build on Linux with 32-bit MinGW cross-compiler
- os: linux
compiler: i686-w64-mingw32-g++-posix
- env: T="Linux MinGW 32-bit" VERBOSE=1 CC=i686-w64-mingw32-gcc-posix CXX=i686-w64-mingw32-g++-posix CMAKE_PARAMS="-DCMAKE_SYSTEM_NAME=Windows -DUSE_LIBZSTD_FROM_INTERNET=ON" RUN_TESTS=0 ENABLE_CACHE_CLEANUP_TESTS=1
+ env: T="Linux MinGW 32-bit" VERBOSE=1 CC=i686-w64-mingw32-gcc-posix CXX=i686-w64-mingw32-g++-posix CMAKE_PARAMS="-DCMAKE_SYSTEM_NAME=Windows -DZSTD_FROM_INTERNET=ON" RUN_TESTS=0 ENABLE_CACHE_CLEANUP_TESTS=1
addons:
apt:
packages:
# Job 6: Build on Linux with 64-bit MinGW cross-compiler
- os: linux
compiler: x86_64-w64-mingw32-g++
- env: T="Linux MinGW 64-bit" VERBOSE=1 CC=x86_64-w64-mingw32-gcc-posix CXX=x86_64-w64-mingw32-g++-posix CMAKE_PARAMS="-DCMAKE_SYSTEM_NAME=Windows -DUSE_LIBZSTD_FROM_INTERNET=ON" RUN_TESTS=0 ENABLE_CACHE_CLEANUP_TESTS=1
+ env: T="Linux MinGW 64-bit" VERBOSE=1 CC=x86_64-w64-mingw32-gcc-posix CXX=x86_64-w64-mingw32-g++-posix CMAKE_PARAMS="-DCMAKE_SYSTEM_NAME=Windows -DZSTD_FROM_INTERNET=ON" RUN_TESTS=0 ENABLE_CACHE_CLEANUP_TESTS=1
addons:
apt:
packages:
# Job 7: Build on MacOS with native Clang
- os: osx
compiler: clang
- env: T="MacOS Clang" VERBOSE=1 CMAKE_PARAMS="-DUSE_LIBZSTD_FROM_INTERNET=ON" ENABLE_CACHE_CLEANUP_TESTS=1
+ env: T="MacOS Clang" VERBOSE=1 CMAKE_PARAMS="-DZSTD_FROM_INTERNET=ON" ENABLE_CACHE_CLEANUP_TESTS=1
# Job 8: Run Clang's undefined behavior sanitizer
- os: linux
#
# Third party
#
-option(USE_LIBZSTD_FROM_INTERNET "Download and use libzstd from the Internet" OFF)
+option(ZSTD_FROM_INTERNET "Download and use libzstd from the Internet" OFF)
find_package(zstd 1.1.2 REQUIRED)
#
return()
endif()
-if(USE_LIBZSTD_FROM_INTERNET)
+if(ZSTD_FROM_INTERNET)
# Although ${zstd_FIND_VERSION} was requested, let's download a newer version.
# Note: The directory structure has changed in 1.3.0; we only support 1.3.0
# and newer.
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
- zstd "please install libzstd or use -DUSE_LIBZSTD_FROM_INTERNET=ON"
+ zstd "please install libzstd or use -DZSTD_FROM_INTERNET=ON"
ZSTD_INCLUDE_DIR ZSTD_LIBRARY)
mark_as_advanced(ZSTD_INCLUDE_DIR ZSTD_LIBRARY)
- A C99 compiler.
- [libzstd](https://www.zstd.net). If you don't have libzstd installed and
can't or don't want to install it on your system, you can pass
- `-DUSE_LIBZSTD_FROM_INTERNET=ON` to cmake, which will download libzstd from
+ `-DZSTD_FROM_INTERNET=ON` to cmake, which will download libzstd from
the Internet and unpack it in the local binary tree.
ccache will then be linked statically to the locally built libzstd.
# Ubuntu (ancient, old and latest)
# zstd not available for Ubuntu 14.
- CC=gcc CXX=g++ CMAKE_PARAMS="-DUSE_LIBZSTD_FROM_INTERNET=ON" ./docker.sh ubuntu-14-trusty
+ CC=gcc CXX=g++ CMAKE_PARAMS="-DZSTD_FROM_INTERNET=ON" ./docker.sh ubuntu-14-trusty
# See https://github.com/ccache/ccache/issues/601
- #CC=clang CXX=clang++ CMAKE_PARAMS="-DUSE_LIBZSTD_FROM_INTERNET=ON" ./docker.sh ubuntu-14-tusty
+ #CC=clang CXX=clang++ CMAKE_PARAMS="-DZSTD_FROM_INTERNET=ON" ./docker.sh ubuntu-14-tusty
CC=gcc CXX=g++ ./docker.sh ubuntu-16-xenial
CC=clang CXX=clang++ ./docker.sh ubuntu-16-xenial
- CC=gcc CXX=g++ CMAKE_PARAMS="-DUSE_LIBZSTD_FROM_INTERNET=ON" ./docker.sh ubuntu-20-focal
- CC=clang CXX=clang++ CMAKE_PARAMS="-DUSE_LIBZSTD_FROM_INTERNET=ON" ./docker.sh ubuntu-20-focal
+ CC=gcc CXX=g++ CMAKE_PARAMS="-DZSTD_FROM_INTERNET=ON" ./docker.sh ubuntu-20-focal
+ CC=clang CXX=clang++ CMAKE_PARAMS="-DZSTD_FROM_INTERNET=ON" ./docker.sh ubuntu-20-focal
# Alpine (old and latest)
- CC=gcc CXX=g++ CMAKE_PARAMS="-DUSE_LIBZSTD_FROM_INTERNET=ON" ./docker.sh alpine-3.4
+ CC=gcc CXX=g++ CMAKE_PARAMS="-DZSTD_FROM_INTERNET=ON" ./docker.sh alpine-3.4
# Clang is not capable to compile libzstd from internet before alpine 3.12 (Some SSE2 error regarding missing file emmintrin.h)
- #CC=clang CXX=clang++ CMAKE_PARAMS="-DUSE_LIBZSTD_FROM_INTERNET=ON" ./docker.sh alpine-3.4
- CC=clang CXX=clang++ CMAKE_PARAMS="-DUSE_LIBZSTD_FROM_INTERNET=ON" ./docker.sh alpine-3.12
+ #CC=clang CXX=clang++ CMAKE_PARAMS="-DZSTD_FROM_INTERNET=ON" ./docker.sh alpine-3.4
+ CC=clang CXX=clang++ CMAKE_PARAMS="-DZSTD_FROM_INTERNET=ON" ./docker.sh alpine-3.12
CC=gcc CXX=g++ ./docker.sh alpine-3.12
CC=clang CXX=clang++ ./docker.sh alpine-3.12