From: Yann Collet Date: Wed, 27 Nov 2019 22:39:43 +0000 (-0800) Subject: travis: updated mingw cross compilation test X-Git-Tag: v1.4.5^2~140^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52dc6ff00eb653091d4ee01c8f445325a2ece09c;p=thirdparty%2Fzstd.git 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. --- diff --git a/.travis.yml b/.travis.yml index c7d027f99..57242a488 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: