]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove -lgcov from profiling tests (#679) 3.7-maint
authorChris Burr <chrisburr@users.noreply.github.com>
Sat, 10 Oct 2020 18:00:19 +0000 (20:00 +0200)
committerGitHub <noreply@github.com>
Sat, 10 Oct 2020 18:00:19 +0000 (20:00 +0200)
This fixes an issue when running the test suite with a Clang installation
without a GCC installation since libgcov then isn't found.

test/suites/profiling.bash
test/suites/profiling_gcc.bash

index babc478881a5b5361140d1dca264084534ad646d..3942313e5121c19e5e0d70e63f079889d85126ed 100644 (file)
@@ -74,7 +74,7 @@ SUITE_profiling() {
     expect_stat 'cache hit (direct)' 0
     expect_stat 'cache miss' 1
 
-    $COMPILER -fprofile-generate=data test.o -lgcov -o test
+    $COMPILER -fprofile-generate test.o -o test
 
     ./test
     merge_profiling_data data
index 8142122898738b6c32b091ec4e5fae5eb84a5ce3..e67b6fa26eaf714d6ddf4de9319985969154a8a9 100644 (file)
@@ -17,7 +17,7 @@ SUITE_profiling_gcc() {
     expect_stat 'cache hit (direct)' 0
     expect_stat 'cache miss' 1
 
-    $COMPILER -fprofile-generate test.o -lgcov -o test
+    $COMPILER -fprofile-generate test.o -o test
 
     ./test
 
@@ -44,7 +44,7 @@ SUITE_profiling_gcc() {
     expect_stat 'cache hit (direct)' 0
     expect_stat 'cache miss' 1
 
-    $COMPILER -fprofile-dir=data -fprofile-generate test.o -lgcov -o test
+    $COMPILER -fprofile-generate test.o -o test
 
     ./test
 
@@ -71,7 +71,7 @@ SUITE_profiling_gcc() {
     expect_stat 'cache hit (direct)' 0
     expect_stat 'cache miss' 1
 
-    $COMPILER -fprofile-generate -fprofile-dir=data test.o -lgcov -o test
+    $COMPILER -fprofile-generate test.o -o test
 
     ./test
 
@@ -98,7 +98,7 @@ SUITE_profiling_gcc() {
     expect_stat 'cache hit (direct)' 0
     expect_stat 'cache miss' 1
 
-    $COMPILER -fprofile-dir=data2 -fprofile-generate=data test.o -lgcov -o test
+    $COMPILER -fprofile-generate test.o -o test
 
     ./test