From 52dc6ff00eb653091d4ee01c8f445325a2ece09c Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 27 Nov 2019 14:39:43 -0800 Subject: [PATCH] travis: updated mingw cross compilation test - only compiles zstd CLI - enforces zero warning tolerance policy note : mingw compilation of the library complains (warning) about -fPIC flag. It mostly ignores it, so it's not a big issue. Still, it would need to be fixed if library cross-compilation becomes part of CI. At this stage, it's unclear if this is a scenario. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c7d027f9..57242a48 100644 --- a/.travis.yml +++ b/.travis.yml @@ -85,7 +85,7 @@ matrix: - make cmakebuild - name: static analyzer scanbuild # ~26mn - dist: trusty # note : it's important to pin down a version of static analyzer, since newer versions find different false positives + dist: trusty # note : it's important to pin down a version of static analyzer, since different versions report different false positives script: - make staticAnalyze @@ -123,7 +123,7 @@ matrix: - name: mingw cross-compilation script : - sudo update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix; - - CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ make + - CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CFLAGS="-Werror -O1" make zstd - name: Valgrind + Fuzz Test Stack Mode # ~ 7mn script: