]>
git.ipfire.org Git - thirdparty/ccache.git/log
John Basila [Sat, 21 May 2016 13:20:33 +0000 (16:20 +0300)]
preprocessor mode: enable using identical header in different paths
Joel Rosdahl [Thu, 21 Jul 2016 19:45:07 +0000 (21:45 +0200)]
Update NEWS
Joel Rosdahl [Thu, 21 Jul 2016 19:42:03 +0000 (21:42 +0200)]
Improve variable name
Anders Björklund [Fri, 25 Sep 2015 17:22:44 +0000 (19:22 +0200)]
Count the number of cleanups performed, in stats
When running a busy ccache, it is useful to keep track of the number
of cleanups performed to know when you need to increase the cache size.
The number shown is actually the number of subdirectories, so when
you do a full cleanup the counter usually increases by 16 (not just 1).
Joel Rosdahl [Thu, 21 Jul 2016 19:08:06 +0000 (21:08 +0200)]
Make all concatenated option path arguments relative
Only when a base directory is used, of course. Also added a test case
for the important -I/some/path case.
Hopefully fixes issue #84. A more generic alternative to PR #85.
Joel Rosdahl [Thu, 21 Jul 2016 14:16:49 +0000 (16:16 +0200)]
Extract code for detecting precompiled header into a separate function
Joel Rosdahl [Thu, 21 Jul 2016 14:02:10 +0000 (16:02 +0200)]
Mark -B as taking a path
Joel Rosdahl [Thu, 21 Jul 2016 08:19:55 +0000 (10:19 +0200)]
test: Try to fix sed syntax to fix build error
travis-ci says
sed: 1: "/^# 1 "<command-line>"$ ...": command a expects \ followed by text
but I fail to reproduce the error locally with GNU sed 4.2.2.
Joel Rosdahl [Wed, 20 Jul 2016 15:54:46 +0000 (17:54 +0200)]
Merge branch '3.2-maint'
* 3.2-maint:
Prepare for v3.2.7
Update NEWS
Make sure to hash the trailing quote when skipping
Add test for certain gcc compilers with buggy cpp
Make calculate_object_hash handle argument-less -B etc. correctly
Joel Rosdahl [Wed, 20 Jul 2016 15:50:03 +0000 (17:50 +0200)]
Prepare for v3.2.7
Joel Rosdahl [Tue, 19 Jul 2016 15:01:31 +0000 (17:01 +0200)]
Update NEWS
Anders Björklund [Thu, 14 Jul 2016 21:22:25 +0000 (23:22 +0200)]
Make sure to hash the trailing quote when skipping
Turns out that 3.2-maint hashes preprocessor output a bit differently,
so the workaround for skipping certain lines was broken in backport.
When skipping the "extra line", the trailing quotes were missing from
the output causing the hash to be different from the normal output.
Anders Björklund [Thu, 14 Jul 2016 15:28:20 +0000 (17:28 +0200)]
Add test for certain gcc compilers with buggy cpp
The preprocessor in later gcc versions is buggy,
returning extra lines and different "line numbers":
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
But it only does this when there are no macros,
otherwise (with -D) it returns the regular output:
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
Joel Rosdahl [Sat, 16 Jul 2016 18:04:37 +0000 (20:04 +0200)]
Make calculate_object_hash handle argument-less -B etc. correctly
Fixes issue #112.
Joel Rosdahl [Sat, 16 Jul 2016 18:04:37 +0000 (20:04 +0200)]
Make calculate_object_hash handle argument-less -B etc. correctly
Fixes issue #112.
Joel Rosdahl [Sat, 16 Jul 2016 18:00:39 +0000 (20:00 +0200)]
test: Make CCACHE_COMPILE available in all suites
Joel Rosdahl [Sat, 16 Jul 2016 13:07:27 +0000 (15:07 +0200)]
Document the *_args variables in cc_process_args
Joel Rosdahl [Sat, 16 Jul 2016 07:55:18 +0000 (09:55 +0200)]
Convert README and INSTALL to markdown
Joel Rosdahl [Wed, 13 Jul 2016 14:15:40 +0000 (16:15 +0200)]
doc: Rename bugs section to caveats
Joel Rosdahl [Wed, 13 Jul 2016 14:13:27 +0000 (16:13 +0200)]
Don't check for symlinks on Windows
Joel Rosdahl [Tue, 12 Jul 2016 20:44:37 +0000 (22:44 +0200)]
Don't use non-POSIX S_ISLNK macro
For portability.
Joel Rosdahl [Tue, 12 Jul 2016 19:24:55 +0000 (21:24 +0200)]
Merge branch '3.2-maint'
* 3.2-maint:
Prepare for v3.2.6
Prepare for v3.1.12
Disable mingw32 build on v3.1.x
Add .travis.yml
Mark 3.1.12 as still unreleased
Prepare for v3.1.12
Don't rewrite source file path if it's absolute and a symlink
Joel Rosdahl [Tue, 12 Jul 2016 19:16:44 +0000 (21:16 +0200)]
Prepare for v3.2.6
Joel Rosdahl [Tue, 12 Jul 2016 19:14:01 +0000 (21:14 +0200)]
Merge branch '3.1-maint' into 3.2-maint
* 3.1-maint:
Prepare for v3.1.12
Disable mingw32 build on v3.1.x
Add .travis.yml
Mark 3.1.12 as still unreleased
Prepare for v3.1.12
Don't rewrite source file path if it's absolute and a symlink
Joel Rosdahl [Tue, 12 Jul 2016 19:04:04 +0000 (21:04 +0200)]
Prepare for v3.1.12
Joel Rosdahl [Mon, 11 Jul 2016 20:32:24 +0000 (22:32 +0200)]
Disable mingw32 build on v3.1.x
Joel Rosdahl [Mon, 11 Jul 2016 19:54:41 +0000 (21:54 +0200)]
Add .travis.yml
Joel Rosdahl [Mon, 11 Jul 2016 19:54:38 +0000 (21:54 +0200)]
Mark 3.1.12 as still unreleased
Joel Rosdahl [Mon, 11 Jul 2016 19:45:03 +0000 (21:45 +0200)]
Fix typo
Joel Rosdahl [Mon, 11 Jul 2016 19:44:44 +0000 (21:44 +0200)]
Merge branch '3.2-maint'
* 3.2-maint:
Doc and comment spelling fixes
Fix some cppcheck style suggestions
Update NEWS
Work around preprocessor bugs in gcc version 6
Ville Skyttä [Sun, 12 Jun 2016 07:02:12 +0000 (10:02 +0300)]
Doc and comment spelling fixes
Ville Skyttä [Tue, 21 Jun 2016 07:22:39 +0000 (10:22 +0300)]
Fix some cppcheck style suggestions
Joel Rosdahl [Mon, 11 Jul 2016 19:27:07 +0000 (21:27 +0200)]
Update NEWS
Anders Björklund [Sun, 26 Jun 2016 21:03:59 +0000 (23:03 +0200)]
Work around preprocessor bugs in gcc version 6
Before hashing the output of the preprocessor (gcc -E):
- Ignore extra line `# 31 "<command-line>"` completely.
- Replace `# 32 "<command-line>" 2` with the regular # 1.
For some reason this only happens with gcc without macros.
Closes #96
Orion Poplawski [Tue, 14 Jun 2016 16:50:25 +0000 (10:50 -0600)]
Add support for -Wp,-D in direct mode
Joel Rosdahl [Mon, 11 Jul 2016 19:08:31 +0000 (21:08 +0200)]
Remove obsolete comment
Joel Rosdahl [Mon, 11 Jul 2016 19:06:32 +0000 (21:06 +0200)]
Updates after pull request #92
Joel Rosdahl [Mon, 11 Jul 2016 18:59:20 +0000 (20:59 +0200)]
Merge pull request #92 from nolange/better_g_argument_parsing
Better parsing of g* Options, and only use last argument
Joel Rosdahl [Fri, 8 Jul 2016 15:21:25 +0000 (17:21 +0200)]
Prepare for v3.1.12
Joel Rosdahl [Fri, 8 Jul 2016 15:21:18 +0000 (17:21 +0200)]
Don't rewrite source file path if it's absolute and a symlink
Fixes issue #111.
Norbert Lange [Sat, 28 May 2016 13:38:10 +0000 (15:38 +0200)]
Better parsing of g* Options, and only use last argument
Commonly some base configuration like CFLAGS="-O2 -g3 ..." will be
modified for builds by appending "-g0" to disable debug information.
This commit only en/disables options based on the last argument
that modifies debuginfo generation.
Also some more arguments are supported.
Joel Rosdahl [Sat, 4 Jun 2016 16:55:44 +0000 (18:55 +0200)]
Merge branch '3.2-maint'
* 3.2-maint:
code style: Mention usage of curly braces around if/for/while/do bodies
Bail out on compiler option -fstack-usage
Mention new repository location on github
Joel Rosdahl [Sat, 4 Jun 2016 15:49:57 +0000 (17:49 +0200)]
code style: Mention usage of curly braces around if/for/while/do bodies
Joel Rosdahl [Sat, 4 Jun 2016 15:41:36 +0000 (17:41 +0200)]
Bail out on compiler option -fstack-usage
It creates a .su file which ccache currently doesn't handle.
Joel Rosdahl [Sat, 4 Jun 2016 15:28:14 +0000 (17:28 +0200)]
Mention new repository location on github
Joel Rosdahl [Fri, 6 May 2016 20:33:15 +0000 (22:33 +0200)]
Merge branch '3.2-maint'
* 3.2-maint:
Only set SA_RESTART if it is defined
Joel Rosdahl [Fri, 6 May 2016 20:31:39 +0000 (22:31 +0200)]
Only set SA_RESTART if it is defined
As suggested by Igor Rondarev to make ccache buildable on QNX.
Joel Rosdahl [Sun, 17 Apr 2016 14:46:06 +0000 (16:46 +0200)]
Merge branch '3.2-maint'
* 3.2-maint:
Update NEWS
Joel Rosdahl [Sun, 17 Apr 2016 14:44:05 +0000 (16:44 +0200)]
Update NEWS
Joel Rosdahl [Sun, 17 Apr 2016 14:40:11 +0000 (16:40 +0200)]
Merge branch '3.2-maint'
* 3.2-maint:
Update copyright year
Update authors list
Update NEWS
Joel Rosdahl [Sun, 17 Apr 2016 14:37:39 +0000 (16:37 +0200)]
Update copyright year
Joel Rosdahl [Sun, 17 Apr 2016 14:34:44 +0000 (16:34 +0200)]
Update authors list
Joel Rosdahl [Sun, 17 Apr 2016 14:30:04 +0000 (16:30 +0200)]
Update NEWS
Joel Rosdahl [Thu, 14 Apr 2016 18:17:55 +0000 (20:17 +0200)]
Merge branch '3.2-maint'
* 3.2-maint:
Make it harder to misinterpret semantics of boolean environment settings
Joel Rosdahl [Thu, 14 Apr 2016 18:15:53 +0000 (20:15 +0200)]
Make it harder to misinterpret semantics of boolean environment settings
As suggested by Jim Klimov.
Joel Rosdahl [Wed, 30 Mar 2016 20:18:31 +0000 (22:18 +0200)]
Update NEWS
Joel Rosdahl [Wed, 30 Mar 2016 19:48:20 +0000 (21:48 +0200)]
Remove unnecessary check of create_tmp_file return value
create_tmp_file never returns NULL.
Joel Rosdahl [Wed, 30 Mar 2016 19:48:13 +0000 (21:48 +0200)]
Tweak code style
Mihai Serban [Tue, 15 Mar 2016 21:55:32 +0000 (23:55 +0200)]
Convert absolute paths to relative paths inside the dependency file
When using DIRECT MODE and the -MD flag to generate a dependency file
the toolchain header files are used with their absolute paths as dependencies.
If the same toolchain is used but from a different location the previously
cached .d file is copied to the current build environment. Because it contains
absolute paths that could disappear or where the current user does not have
access the compilation will fail complaining that some header files cannot
be found.
This mostly happens when the cache is shared among multiple users or multiple
clones of a source tree and when the same toolchain is used but from different
locations.
This patch adds support for this kind of usage by replacing the absolute paths
with relative ones based on the BASEDIR value.
https://lists.samba.org/archive/ccache/2014q2/001183.html
https://lists.samba.org/archive/ccache/2014q2/001184.html
Anders Björklund [Mon, 28 Mar 2016 16:43:02 +0000 (18:43 +0200)]
Fix warnings from uncrustify
Joel Rosdahl [Wed, 30 Mar 2016 19:36:27 +0000 (21:36 +0200)]
Merge branch '3.2-maint'
* 3.2-maint:
Update NEWS
Fix --print-config to show pch_defines
Joel Rosdahl [Wed, 30 Mar 2016 19:28:29 +0000 (21:28 +0200)]
Update NEWS
KonaBlend [Sun, 27 Mar 2016 18:45:19 +0000 (14:45 -0400)]
Fix --print-config to show pch_defines
Joel Rosdahl [Fri, 25 Mar 2016 20:10:40 +0000 (21:10 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Update NEWS
Fix clang plugin hashing.
Joel Rosdahl [Fri, 25 Mar 2016 20:09:06 +0000 (21:09 +0100)]
Update NEWS
Mikhail Kolomeytsev [Fri, 25 Mar 2016 17:38:44 +0000 (23:38 +0600)]
Fix clang plugin hashing.
This matters when compiling in different directories and clang plugin
is located in them. make_relative_path is redundant in that case.
https://lists.samba.org/archive/ccache/2016q1/001425.html
Anders Björklund [Tue, 22 Mar 2016 06:30:43 +0000 (07:30 +0100)]
Add note about MinGW/Windows fixes to NEWS
Joel Rosdahl [Wed, 16 Mar 2016 19:04:09 +0000 (20:04 +0100)]
Adjust code as suggested by uncrustify
Joel Rosdahl [Wed, 16 Mar 2016 19:04:08 +0000 (20:04 +0100)]
Enable some mod_full_* uncrustify options
Joel Rosdahl [Wed, 16 Mar 2016 19:04:06 +0000 (20:04 +0100)]
Add note about keep_comments_cpp to NEWS
Anders Björklund [Mon, 14 Mar 2016 19:21:39 +0000 (20:21 +0100)]
Add a function test for keep preprocessor comments
Anders Björklund [Mon, 14 Mar 2016 06:46:58 +0000 (07:46 +0100)]
Add option to not discard comments in preprocessor
Joel Rosdahl [Fri, 4 Mar 2016 18:44:05 +0000 (19:44 +0100)]
Simplify GetFileNameFromHandle somewhat by returning early
Anders Björklund [Fri, 4 Mar 2016 14:22:59 +0000 (15:22 +0100)]
Add compat version of GetFinalPathNameByHandle
Anders Björklund [Fri, 4 Mar 2016 11:36:06 +0000 (12:36 +0100)]
Use the standard MinGW for Ubuntu 12.04 LTS
Seems like Travis is using precise, use default version.
Leaving the Ubuntu 14.04 LTS config, in the git history.
Fix the YAML syntax so that is actually runs it, too.
Apparently it just "overwrote" it with the ASan build.
Anders Björklund [Fri, 4 Mar 2016 09:44:43 +0000 (10:44 +0100)]
Add a MinGW test compile to the Travis test matrix
Actually *running* the check (quicktest or the full test)
requires that WINE is installed too, which is a bit heavy.
Note that you would need to also install "binfmt-support",
so that Linux knows how to execute the .exe files (wine).
Anders Björklund [Fri, 4 Mar 2016 10:04:01 +0000 (11:04 +0100)]
Apparently MinGW does not support debug-prefix-map
Anders Björklund [Fri, 4 Mar 2016 09:39:33 +0000 (10:39 +0100)]
ESTALE is not defined on all systems (e.g Windows)
Joel Rosdahl [Wed, 2 Mar 2016 20:08:25 +0000 (21:08 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Handle some more "stale NFS file handle" cases
Handle "Stale NFS File Handle" cases better.
Joel Rosdahl [Wed, 2 Mar 2016 19:57:08 +0000 (20:57 +0100)]
Handle some more "stale NFS file handle" cases
Nick Schultz [Wed, 17 Feb 2016 00:02:44 +0000 (16:02 -0800)]
Handle "Stale NFS File Handle" cases better.
Anders Björklund [Thu, 18 Feb 2016 21:00:59 +0000 (22:00 +0100)]
Fix Windows quicktest, paths and bats
Mostly about path shenaningans, with the drive letter and backslashes
Also hack in some support for running echo command, and batch files.
All tests now pass, at least on Wine (but with some "fixme" warnings):
PASSED: 458 assertions, 89 tests, 10 suites
Anders Björklund [Wed, 17 Feb 2016 20:48:23 +0000 (21:48 +0100)]
Windows version of rm, to remove testdir
Anders Björklund [Tue, 16 Feb 2016 20:06:38 +0000 (21:06 +0100)]
Add some Windows/MinGW ifdefs, to make it build
Joel Rosdahl [Wed, 17 Feb 2016 19:35:01 +0000 (20:35 +0100)]
Fix cppcheck style suggestions
Joel Rosdahl [Wed, 17 Feb 2016 19:33:44 +0000 (20:33 +0100)]
Adjust code as suggested by uncrustify
Joel Rosdahl [Wed, 17 Feb 2016 19:32:39 +0000 (20:32 +0100)]
Tweak MANUAL and NEWS
Joel Rosdahl [Wed, 17 Feb 2016 19:25:46 +0000 (20:25 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Add missing quote character in NEWS.txt
Joel Rosdahl [Wed, 17 Feb 2016 19:22:58 +0000 (20:22 +0100)]
Add missing quote character in NEWS.txt
Anders Björklund [Mon, 8 Feb 2016 19:19:12 +0000 (20:19 +0100)]
Add the default sloppiness to the pth test for pch
Anders Björklund [Sat, 6 Feb 2016 14:21:28 +0000 (15:21 +0100)]
Update NEWS
Anders Björklund [Wed, 27 Jan 2016 21:08:23 +0000 (22:08 +0100)]
Only hash the cwd dir when generating debuginfo
Some distributions, like Fedora, enable CACHE_HASHDIR *globally* !
This and -fdebug-prefix-map will allow using CCACHE_BASEDIR again.
Anders Björklund [Wed, 27 Jan 2016 20:49:32 +0000 (21:49 +0100)]
Add unit test for hash_dir with -fdebug-prefix-map
Test that we get cache hits with CCACHE_BASEDIR when debugging,
with CCACHE_HASHDIR - but without the dir in the debug object.
Anders Björklund [Sun, 29 Nov 2015 12:52:21 +0000 (13:52 +0100)]
Improve debuginfo cwd when using -fdebug-prefix-map
Support the -fdebug-prefix-map option, for relocating the debuginfo
current working directory (cwd) as recorded with CCACHE_HASHDIR.
This can be used in connection with CCACHE_BASEDIR, to get cache hits
even when generating debuginfo: the base directory can be mapped.
Joel Rosdahl [Sun, 7 Feb 2016 11:05:39 +0000 (12:05 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Create man page in the make-install-from-git-repo case
Joel Rosdahl [Sun, 7 Feb 2016 11:03:25 +0000 (12:03 +0100)]
Fall back to copying if hard-linking fails
As suggested by Matt Blythe.
Joel Rosdahl [Sun, 7 Feb 2016 08:33:16 +0000 (09:33 +0100)]
Create man page in the make-install-from-git-repo case
Joel Rosdahl [Sat, 6 Feb 2016 16:12:34 +0000 (17:12 +0100)]
Plug minor memory leaks, mostly in unit tests
Joel Rosdahl [Sat, 6 Feb 2016 16:05:24 +0000 (17:05 +0100)]
Recognize concatenated form of some long compiler options
Joel Rosdahl [Sat, 6 Feb 2016 14:04:11 +0000 (15:04 +0100)]
Fail test suite gracefully if eu-elfcmp is missing