]>
git.ipfire.org Git - thirdparty/ccache.git/log
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 [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
Joel Rosdahl [Sat, 6 Feb 2016 14:03:07 +0000 (15:03 +0100)]
Sort package list
Joel Rosdahl [Sat, 6 Feb 2016 14:00:51 +0000 (15:00 +0100)]
Update NEWS
Anders Björklund [Mon, 1 Feb 2016 21:48:05 +0000 (22:48 +0100)]
Fix clang test suite when running on linux (elf)
Need to use eu-elfcmp (from elfutils) instead of cmp, to compare
objects. Also need to cater for color coding (not to /dev/null).
And it seems like the pch test suite hadn't been kept up to date
plus some minor annoyances (i.e. a warning) in the coverage test.
Anders Björklund [Mon, 1 Feb 2016 20:00:09 +0000 (21:00 +0100)]
Canonicalize path for header ignore comparison
Clang shows included headers from the current directory starting
with a "./", that causes the ignore comparison to miss otherwise.
Joel Rosdahl [Sat, 6 Feb 2016 11:49:18 +0000 (12:49 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Use correct hash table in file_stat_matches mode
Joel Rosdahl [Sat, 6 Feb 2016 11:45:21 +0000 (12:45 +0100)]
Use correct hash table in file_stat_matches mode
Bug found by Riley Avron.
Joel Rosdahl [Sat, 30 Jan 2016 16:37:23 +0000 (17:37 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Always run the unit tests during check
Anders Björklund [Tue, 12 Jan 2016 21:40:14 +0000 (22:40 +0100)]
Always run the unit tests during check
Joel Rosdahl [Thu, 14 Jan 2016 21:00:13 +0000 (22:00 +0100)]
Update NEWS
Anders Björklund [Wed, 4 Nov 2015 21:58:25 +0000 (22:58 +0100)]
Add prefix option for precompiler too
To avoid overload the local CPU with precompiling, it can be useful
to let distcc know (take a local slot) when ccache is precompiling.
Those slots are kept in a separate locking queue (--localslots_cpp)
from the remote compilations, in order to use many more remote slots.
Joel Rosdahl [Sun, 3 Jan 2016 19:49:26 +0000 (20:49 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Don't (try to) update manifest in readonly modes
Fix cppcheck warnings/suggestions
Add cppcheck Makefile target
Joel Rosdahl [Sun, 3 Jan 2016 19:45:15 +0000 (20:45 +0100)]
Don't (try to) update manifest in readonly modes
Joel Rosdahl [Sat, 2 Jan 2016 18:41:17 +0000 (19:41 +0100)]
Fix cppcheck warnings/suggestions
Joel Rosdahl [Sat, 2 Jan 2016 18:39:42 +0000 (19:39 +0100)]
Add cppcheck Makefile target
Joel Rosdahl [Tue, 22 Dec 2015 19:07:15 +0000 (20:07 +0100)]
Let ignore_headers_in_manifest match full directory or file names
Joel Rosdahl [Tue, 22 Dec 2015 19:07:01 +0000 (20:07 +0100)]
Tweak manual text
Joel Rosdahl [Tue, 22 Dec 2015 19:00:00 +0000 (20:00 +0100)]
Improve code style
Anders Björklund [Fri, 13 Nov 2015 20:08:02 +0000 (21:08 +0100)]
Add feature to ignore headers in manifest
Certain headers are never changed, or perhaps not so important (timestamps).
Avoid repeatedly hashing these in the manifest, to make direct mode faster.
One can either use the full path to the include file, or perhaps a directory
of headers to ignore all the headers under that directory (e.g. compiler)
Joel Rosdahl [Sun, 20 Dec 2015 21:28:12 +0000 (22:28 +0100)]
Fix typos in manual
Joel Rosdahl [Sat, 19 Dec 2015 16:20:26 +0000 (17:20 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Add travis configuration
Update NEWS
Don't assume that mkstemp leaves template unmodified on error
Conflicts:
.travis.yml
Joel Rosdahl [Sat, 19 Dec 2015 16:18:16 +0000 (17:18 +0100)]
Update NEWS
Joel Rosdahl [Sat, 19 Dec 2015 16:16:56 +0000 (17:16 +0100)]
Tweak code style
Rolf Bjarne Kvinge [Fri, 18 Dec 2015 11:04:03 +0000 (12:04 +0100)]
Allow multiple identical -arch arguments.
Joel Rosdahl [Sat, 19 Dec 2015 14:59:59 +0000 (15:59 +0100)]
Update NEWS
Joel Rosdahl [Sat, 19 Dec 2015 14:58:22 +0000 (15:58 +0100)]
Sort sloppiness options in manual
Joel Rosdahl [Sat, 19 Dec 2015 14:58:12 +0000 (15:58 +0100)]
Tweak code style
Anders Björklund [Sat, 24 Oct 2015 14:41:33 +0000 (16:41 +0200)]
Allow not including system headers in manifest
If CCACHE_SLOPPINESS includes "no_system_headers", ccache will not add any
system headers to the manifest's list of include files to always check.
This allows ccache to only check non-system headers, but will also cause
it to return stale cache hits if such system headers have been changed.
Joel Rosdahl [Sat, 19 Dec 2015 14:57:47 +0000 (15:57 +0100)]
Avoid bashism in .travis.yml
Joel Rosdahl [Mon, 7 Dec 2015 20:19:01 +0000 (21:19 +0100)]
Add travis configuration
Joel Rosdahl [Mon, 7 Dec 2015 19:57:41 +0000 (20:57 +0100)]
Update NEWS
Joel Rosdahl [Sun, 6 Dec 2015 19:30:39 +0000 (20:30 +0100)]
Don't assume that mkstemp leaves template unmodified on error
This fixes a problem seen on QNX.
Joel Rosdahl [Sun, 6 Dec 2015 19:27:03 +0000 (20:27 +0100)]
Merge pull request #55 from misery/master
Add initial travis config
André Klitzing [Fri, 27 Nov 2015 07:56:02 +0000 (08:56 +0100)]
Add initial travis config
Joel Rosdahl [Mon, 2 Nov 2015 20:14:42 +0000 (21:14 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Update NEWS
Fix build on Solaris 10+ and AIX 7
Joel Rosdahl [Mon, 2 Nov 2015 20:14:32 +0000 (21:14 +0100)]
Update NEWS
Neil Mushell [Mon, 2 Nov 2015 20:12:24 +0000 (21:12 +0100)]
Fix build on Solaris 10+ and AIX 7
Joel Rosdahl [Fri, 30 Oct 2015 16:23:25 +0000 (17:23 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Update NEWS
Pass -stdlib= only to preprocessor
Joel Rosdahl [Fri, 30 Oct 2015 16:19:34 +0000 (17:19 +0100)]
Update NEWS
Matthias Kretz [Fri, 30 Oct 2015 15:53:37 +0000 (16:53 +0100)]
Pass -stdlib= only to preprocessor
Clang warns about an unused -stdlib=libc++ argument if the argument is
passed to the second clang invocation. The -stdlib= argument is only
necessary on preprocessing (to set the system include paths) and on
linking (which is not cached anyway)
Signed-off-by: Matthias Kretz <kretz@kde.org>
Joel Rosdahl [Tue, 27 Oct 2015 21:14:36 +0000 (22:14 +0100)]
Merge branch '3.2-maint'
* 3.2-maint:
Correct manual regarding __DATE_, __TIME__ and __FILE__ macros
Include m4 files used by configure.ac in dist archive
Conflicts:
NEWS.txt
Joel Rosdahl [Tue, 27 Oct 2015 21:13:20 +0000 (22:13 +0100)]
Correct manual regarding __DATE_, __TIME__ and __FILE__ macros
Thanks to Yevhen Ivannikov for noticing this.
Joel Rosdahl [Fri, 9 Oct 2015 19:13:57 +0000 (21:13 +0200)]
Include m4 files used by configure.ac in dist archive
Joel Rosdahl [Mon, 19 Oct 2015 20:36:32 +0000 (22:36 +0200)]
Change to https links to ccache resources
Joel Rosdahl [Fri, 9 Oct 2015 19:13:57 +0000 (21:13 +0200)]
Include m4 files used by configure.ac in dist archive