From: Chris Burr Date: Sat, 10 Oct 2020 18:00:19 +0000 (+0200) Subject: Remove -lgcov from profiling tests (#679) X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2F3.7-maint;p=thirdparty%2Fccache.git Remove -lgcov from profiling tests (#679) This fixes an issue when running the test suite with a Clang installation without a GCC installation since libgcov then isn't found. --- diff --git a/test/suites/profiling.bash b/test/suites/profiling.bash index babc47888..3942313e5 100644 --- a/test/suites/profiling.bash +++ b/test/suites/profiling.bash @@ -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 diff --git a/test/suites/profiling_gcc.bash b/test/suites/profiling_gcc.bash index 814212289..e67b6fa26 100644 --- a/test/suites/profiling_gcc.bash +++ b/test/suites/profiling_gcc.bash @@ -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