[librsvg: 2/13] WIP: explicitly link clang's profile lib for coverage




commit faa74cfc54de12604a839fb00df8ae7e4cec3de0
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Aug 2 14:03:38 2022 -0500

    WIP: explicitly link clang's profile lib for coverage
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/724>

 .gitlab-ci.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a486f637f..43c64fc90 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -267,10 +267,15 @@ coverage:
     - job: check
       artifacts: false
   variables:
+    # Mixed gcc and Rust/LLVM coverage for the C API tests:
+    # https://searchfox.org/mozilla-central/source/browser/config/mozconfigs/linux64/code-coverage#15
     CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
-    RUSTFLAGS: "-Cinstrument-coverage"
+    # RUSTFLAGS: "-Cinstrument-coverage"
     RUSTDOCFLAGS: "-Cinstrument-coverage"
     LLVM_PROFILE_FILE: "coverage-profiles/coverage-%p-%m.profraw"
+    LDFLAGS: "--coverage -L/usr/lib64/clang/14.0.6/lib/linux"
+    LIBS: "-lclang_rt.profile-x86_64"
+    RUSTFLAGS: "-Ccodegen-units=1 -Zprofile -Cpanic=abort -Zpanic_abort_tests -Clink-dead-code 
-Coverflow-checks=off"    
   script:
     - mkdir -p _build
     - cd _build


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]