diff options
author | Chris Burr <chrisburr@users.noreply.github.com> | 2020-10-10 20:00:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-10 20:00:19 +0200 |
commit | 9e128bfeb9a5050231a41e357729645c5a99fc2e (patch) | |
tree | e64be6b610cc759227a5fc9489483192209cb50e | |
parent | a357b91272226c3dceeb5049885ff7ba555c5294 (diff) | |
download | ccache-3.7-maint.tar.gz |
Remove -lgcov from profiling tests (#679)3.7-maint
This fixes an issue when running the test suite with a Clang installation
without a GCC installation since libgcov then isn't found.
-rw-r--r-- | test/suites/profiling.bash | 2 | ||||
-rw-r--r-- | test/suites/profiling_gcc.bash | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/suites/profiling.bash b/test/suites/profiling.bash index babc4788..3942313e 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 81421228..e67b6fa2 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 |