[librsvg: 9/13] Switch from LLVM source-based instrumentation back to gcov




commit 1bfb7ad7946f2cc646c8aa8914af0073576e104c
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Aug 4 20:01:02 2022 -0500

    Switch from LLVM source-based instrumentation back to gcov
    
    I.e. from -Cinstrument-coverage to -Zprofile
    
    This makes grcov take a long amount of time to run, hmmm...
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/724>

 .gitlab-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2e5e79292..19501ef4a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -276,7 +276,9 @@ 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: "-Cinstrument-coverage -Ccodegen-units=1 -Clink-dead-code -Coverflow-checks=off"
+    RUSTC_BOOTSTRAP: "1"   # hack to make -Zprofile work on the non-nightly compiler
+    CARGO_INCREMENTAL: "0" # -Zprofile (gcov) doesn't like incremental compilation
+    RUSTFLAGS: "-Zprofile -Ccodegen-units=1 -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]