<body class="article">\r
<div id="header">\r
<h1>ccache copyright and license</h1>\r
-<span id="revnumber">version 3.7.3</span>\r
+<span id="revnumber">version 3.7.4</span>\r
<div id="toc">
<div id="toctitle">Table of Contents</div>
<noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
<div id="footnotes"><hr /></div>\r
<div id="footer">\r
<div id="footer-text">\r
-Version 3.7.3<br />\r
+Version 3.7.4<br />\r
Last updated\r
- 2019-08-17 22:37:25 CEST\r
+ 2019-09-12 21:14:17 CEST\r
</div>\r
</div>\r
</body>\r
* Chiaki Ishikawa
* Chris AtLee
* Clemens Rabe
+* Cristian Adam
* David Givone
* Doug Anderson
* Edward Z. Yang
<body class="article">\r
<div id="header">\r
<h1>ccache authors</h1>\r
-<span id="revnumber">version 3.7.3</span>\r
+<span id="revnumber">version 3.7.4</span>\r
<div id="toc">
<div id="toctitle">Table of Contents</div>
<noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
</li>\r
<li>\r
<p>\r
+Cristian Adam\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
David Givone\r
</p>\r
</li>\r
<div id="footnotes"><hr /></div>\r
<div id="footer">\r
<div id="footer-text">\r
-Version 3.7.3<br />\r
+Version 3.7.4<br />\r
Last updated\r
- 2019-08-17 22:37:25 CEST\r
+ 2019-09-12 21:14:17 CEST\r
</div>\r
</div>\r
</body>\r
<body class="article">\r
<div id="header">\r
<h1>CCACHE(1)</h1>\r
-<span id="revnumber">version 3.7.3</span>\r
+<span id="revnumber">version 3.7.4</span>\r
<div id="toc">
<div id="toctitle">Table of Contents</div>
<noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
<div id="footnotes"><hr /></div>\r
<div id="footer">\r
<div id="footer-text">\r
-Version 3.7.3<br />\r
+Version 3.7.4<br />\r
Last updated\r
- 2019-08-17 22:37:25 CEST\r
+ 2019-09-12 21:14:17 CEST\r
</div>\r
</div>\r
</body>\r
ccache news
===========
+ccache 3.7.4
+------------
+Release date: 2019-09-12
+
+Improvements
+~~~~~~~~~~~~
+
+- Added support for GCC 9’s `-gz[=type]` option (previously ccache would think
+ that “-gz” alone would enable debug information, thus potentially including
+ the current directory in the hash).
+
+- Added support for converting paths like “/c/users” into relative paths on
+ Windows.
+
+
ccache 3.7.3
------------
Release date: 2019-08-17
<body class="article">\r
<div id="header">\r
<h1>ccache news</h1>\r
-<span id="revnumber">version 3.7.3</span>\r
+<span id="revnumber">version 3.7.4</span>\r
<div id="toc">
<div id="toctitle">Table of Contents</div>
<noscript><p><b>JavaScript must be enabled in your browser to display the table of contents.</b></p></noscript>
</div>\r
<div id="content">\r
<div class="sect1">\r
+<h2 id="_ccache_3_7_4">ccache 3.7.4</h2>\r
+<div class="sectionbody">\r
+<div class="paragraph"><p>Release date: 2019-09-12</p></div>\r
+<div class="sect2">\r
+<h3 id="_improvements">Improvements</h3>\r
+<div class="ulist"><ul>\r
+<li>\r
+<p>\r
+Added support for GCC 9’s <code>-gz[=type]</code> option (previously ccache would think\r
+ that “-gz” alone would enable debug information, thus potentially including\r
+ the current directory in the hash).\r
+</p>\r
+</li>\r
+<li>\r
+<p>\r
+Added support for converting paths like “/c/users” into relative paths on\r
+ Windows.\r
+</p>\r
+</li>\r
+</ul></div>\r
+</div>\r
+</div>\r
+</div>\r
+<div class="sect1">\r
<h2 id="_ccache_3_7_3">ccache 3.7.3</h2>\r
<div class="sectionbody">\r
<div class="paragraph"><p>Release date: 2019-08-17</p></div>\r
<div id="footnotes"><hr /></div>\r
<div id="footer">\r
<div id="footer-text">\r
-Version 3.7.3<br />\r
+Version 3.7.4<br />\r
Last updated\r
- 2019-08-17 22:37:25 CEST\r
+ 2019-09-12 21:14:17 CEST\r
</div>\r
</div>\r
</body>\r
.\" Title: ccache
.\" Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
-.\" Date: 08/17/2019
+.\" Date: 09/12/2019
.\" Manual: ccache Manual
-.\" Source: ccache 3.7.3
+.\" Source: ccache 3.7.4
.\" Language: English
.\"
-.TH "CCACHE" "1" "08/17/2019" "ccache 3\&.7\&.3" "ccache Manual"
+.TH "CCACHE" "1" "09/12/2019" "ccache 3\&.7\&.4" "ccache Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
#ifdef _WIN32
if (path[0] == '/') {
- path++; // Skip leading slash.
+ char *p = NULL;
+ if (isalpha(path[1]) && path[2] == '/') {
+ // Transform /c/path... to c:/path...
+ p = format("%c:/%s", path[1], &path[3]);
+ } else {
+ p = x_strdup(path+1); // Skip leading slash.
+ }
+ free(path);
+ path = p;
}
#endif
continue;
}
+ if (str_startswith(argv[i], "-gz")) {
+ // -gz[=type] neither disables nor enables debug info.
+ continue;
+ }
+
char last_char = argv[i][strlen(argv[i]) - 1];
if (last_char == '0') {
// "-g0", "-ggdb0" or similar: All debug information disabled.
-extern const char CCACHE_VERSION[]; const char CCACHE_VERSION[] = "3.7.3";
+extern const char CCACHE_VERSION[]; const char CCACHE_VERSION[] = "3.7.4";
expect_stat 'cache miss' 1
# -------------------------------------------------------------------------
+ TEST "Directory is not hashed if using -gz"
+
+ if $REAL_COMPILER -c test1.c -gz -o /dev/null 2>/dev/null; then
+ mkdir dir1 dir2
+ cp test1.c dir1
+ cp test1.c dir2
+
+ cd dir1
+ $CCACHE_COMPILE -c test1.c -gz
+ expect_stat 'cache hit (preprocessed)' 0
+ expect_stat 'cache miss' 1
+ $CCACHE_COMPILE -c test1.c -gz
+ expect_stat 'cache hit (preprocessed)' 1
+ expect_stat 'cache miss' 1
+
+ cd ../dir2
+ $CCACHE_COMPILE -c test1.c -gz
+ expect_stat 'cache hit (preprocessed)' 2
+ expect_stat 'cache miss' 1
+ fi
+
+ # -------------------------------------------------------------------------
+ TEST "Directory is not hashed if using -gz=zlib"
+
+ if $REAL_COMPILER -c test1.c -gz=zlib -o /dev/null 2>/dev/null; then
+ mkdir dir1 dir2
+ cp test1.c dir1
+ cp test1.c dir2
+
+ cd dir1
+ $CCACHE_COMPILE -c test1.c -gz=zlib
+ expect_stat 'cache hit (preprocessed)' 0
+ expect_stat 'cache miss' 1
+ $CCACHE_COMPILE -c test1.c -gz=zlib
+ expect_stat 'cache hit (preprocessed)' 1
+ expect_stat 'cache miss' 1
+
+ cd ../dir2
+ $CCACHE_COMPILE -c test1.c -gz=zlib
+ expect_stat 'cache hit (preprocessed)' 2
+ expect_stat 'cache miss' 1
+ fi
+
+ # -------------------------------------------------------------------------
TEST "CCACHE_NOHASHDIR"
mkdir dir1 dir2