- Bypass cache with --coverage, -fprofile-arcs and -ftest-coverage

(upstream CVS and Matt Fago, #231462).
This commit is contained in:
Ville Skyttä 2007-03-18 12:20:13 +00:00
parent a9bed005be
commit e86332ab22
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
--- ccache.c~ 2004-09-13 13:38:30.000000000 +0300
+++ ccache.c 2007-03-15 12:31:41.000000000 +0200
@@ -640,6 +640,9 @@
/* these are too hard */
if (strcmp(argv[i], "-fbranch-probabilities")==0 ||
+ strcmp(argv[i], "--coverage") == 0 ||
+ strcmp(argv[i], "-fprofile-arcs") == 0 ||
+ strcmp(argv[i], "-ftest-coverage") == 0 ||
strcmp(argv[i], "-M") == 0 ||
strcmp(argv[i], "-MM") == 0 ||
strcmp(argv[i], "-x") == 0) {

View File

@ -3,7 +3,7 @@
Name: ccache
Version: 2.4
Release: 7%{?dist}
Release: 8%{?dist}
Summary: C/C++ compiler cache
Group: Development/Tools
@ -11,6 +11,7 @@ License: GPL
URL: http://ccache.samba.org/
Source0: http://ccache.samba.org/ftp/ccache/%{name}-%{version}.tar.gz
Patch0: %{name}-html-links.patch
Patch1: %{name}-2.4-coverage-231462.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires(triggerin): coreutils
@ -26,6 +27,7 @@ a 5 to 10 times speedup in common compilations.
%prep
%setup -q
%patch0 -p0
%patch1 -p0
%build
@ -86,6 +88,10 @@ done
%changelog
* Thu Mar 15 2007 Ville Skyttä <ville.skytta at iki.fi> - 2.4-8
- Bypass cache with --coverage, -fprofile-arcs and -ftest-coverage
(upstream CVS and Matt Fago, #231462).
* Fri Nov 10 2006 Ville Skyttä <ville.skytta at iki.fi> - 2.4-7
- Require coreutils for triggers (#215030).