]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
travis: add defines for _Float64/_Float64x/_Float32/_Float32x 9193/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Jun 2018 09:23:46 +0000 (11:23 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Jun 2018 09:40:34 +0000 (11:40 +0200)
$ build/test-sizeof
...
_Float128 → 128 bits, signed
_Float64 → 64 bits, signed
_Float64x → 128 bits, signed
_Float32 → 32 bits, signed
_Float32x → 64 bits, signed
...

This seems to be enough to make coverity work with glibc-2.27 found in Fedora 28+.

.travis.yml

index 3d23d5fd7c924c1fc1218e7593489313cd748c57..c2a6f3b0621df0022a00035738cfe571aeae5cd0 100644 (file)
@@ -50,7 +50,7 @@ jobs:
               - docker cp tools/coverity.sh travis_coverity_scan:/usr/local/bin
                 # Preconfigure with meson to prevent Coverity from capturing meson metadata
                 # Set compiler flag to prevent emit failure
-              - docker exec -it travis_coverity_scan sh -c "CFLAGS='-D_Float128=long\ double' meson cov-build -Dman=false"
+              - docker exec -it travis_coverity_scan sh -c "CFLAGS='-D_Float128=long\ double -D_Float64=double -D_Float64x=long\ double -D_Float32=float -D_Float32x=double' meson cov-build -Dman=false"
                 # Run Coverity Analysis
               - docker exec -it travis_coverity_scan coverity.sh build
               - docker exec -it travis_coverity_scan coverity.sh upload