Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 78754 Details for
Bug 121336
ccache doesn't notice when split-specs compilers are switched
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
add output of '<compiler> -v' to the hash
ccache-hash-gcc-v.patch (text/plain), 935 bytes, created by
Kevin F. Quinn (RETIRED)
on 2006-02-02 14:07:45 UTC
(
hide
)
Description:
add output of '<compiler> -v' to the hash
Filename:
MIME Type:
Creator:
Kevin F. Quinn (RETIRED)
Created:
2006-02-02 14:07:45 UTC
Size:
935 bytes
patch
obsolete
>--- ccache.c.orig 2006-02-02 23:06:03.000000000 +0100 >+++ ccache.c 2006-02-02 23:05:23.000000000 +0100 >@@ -261,6 +261,7 @@ > int nlevels = 2; > char *input_base; > char *tmp; >+ char *version[3]; > > if ((s = getenv("CCACHE_NLEVELS"))) { > nlevels = atoi(s); >@@ -334,6 +335,21 @@ > hash_int(st.st_size); > hash_int(st.st_mtime); > >+ /* Include output of 'gcc -v' into hash, to differentiate >+ Gentoo SPECS switching trickery */ >+ x_asprintf(&path_stdout, "%s/tmp.v.out.%s", temp_dir, tmp_string()); >+ x_asprintf(&path_stderr, "%s/tmp.v.err.%s", temp_dir, tmp_string()); >+ version[0]=args->argv[0]; >+ version[1]="-v"; >+ version[2]=NULL; >+ status = execute(version,path_stdout,path_stderr); >+ if (status == 0) { >+ hash_file(path_stdout); >+ hash_file(path_stderr); >+ } >+ unlink(path_stdout); >+ unlink(path_stderr); >+ > /* possibly hash the current working directory */ > if (getenv("CCACHE_HASHDIR")) { > char *cwd = gnu_getcwd();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 121336
:
78744
| 78754