]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
travis: updated mingw cross compilation test
authorYann Collet <yann.collet.73@gmail.com>
Wed, 27 Nov 2019 22:39:43 +0000 (14:39 -0800)
committerYann Collet <yann.collet.73@gmail.com>
Wed, 27 Nov 2019 22:39:43 +0000 (14:39 -0800)
- 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

index c7d027f997a5736e471c43b3e5f02dd147e2c212..57242a488ac12bbd23e278dc8b36b2d732eee20f 100644 (file)
@@ -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: