]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
9 years agoInclude m4 files used by configure.ac in dist archive
Joel Rosdahl [Fri, 9 Oct 2015 19:13:57 +0000 (21:13 +0200)] 
Include m4 files used by configure.ac in dist archive

9 years agoPrepare for v3.2.4 v3.2.4
Joel Rosdahl [Thu, 8 Oct 2015 19:12:14 +0000 (21:12 +0200)] 
Prepare for v3.2.4

9 years agoUpdate AUTHORS.txt
Joel Rosdahl [Thu, 8 Oct 2015 19:08:42 +0000 (21:08 +0200)] 
Update AUTHORS.txt

9 years agoUse correct data types for stats_set_sizes parameters
Joel Rosdahl [Sun, 4 Oct 2015 11:56:22 +0000 (13:56 +0200)] 
Use correct data types for stats_set_sizes parameters

9 years agoClean up
Joel Rosdahl [Sat, 19 Sep 2015 14:24:26 +0000 (16:24 +0200)] 
Clean up

9 years agoFix typo in 1eef4547400f2ba0c49db4a47e0413612b81cc43
Joel Rosdahl [Mon, 14 Sep 2015 17:48:42 +0000 (19:48 +0200)] 
Fix typo in 1eef4547400f2ba0c49db4a47e0413612b81cc43

9 years agoUse correct compression level when copying into the cache
Joel Rosdahl [Sun, 13 Sep 2015 12:35:26 +0000 (14:35 +0200)] 
Use correct compression level when copying into the cache

9 years agoUpdate NEWS
Joel Rosdahl [Sun, 13 Sep 2015 12:31:28 +0000 (14:31 +0200)] 
Update NEWS

9 years agoMinor improvements to Windows support
Vadim Petrochenkov [Mon, 7 Sep 2015 18:36:36 +0000 (21:36 +0300)] 
Minor improvements to Windows support

9 years agoRevert "Recognize concatenated form of some compiler options"
Joel Rosdahl [Sat, 5 Sep 2015 20:42:31 +0000 (22:42 +0200)] 
Revert "Recognize concatenated form of some compiler options"

This reverts commit 631632852a0c6bdfe77ef04bd8d675f0295c035f. The change
was not quite enough to fix the problem..

9 years agoRecognize concatenated form of some compiler options
Joel Rosdahl [Sat, 5 Sep 2015 20:16:37 +0000 (22:16 +0200)] 
Recognize concatenated form of some compiler options

GCC apparently accepts "-isystemfoo" instead of "-isystem foo" even
though only the latter is documented.

9 years agoInclude strings.h for strcasecmp
Joel Rosdahl [Sat, 29 Aug 2015 16:32:00 +0000 (18:32 +0200)] 
Include strings.h for strcasecmp

9 years agoRemove unnecessary extra_cppflags, extra_ldflags and all_ldflags variables
Joel Rosdahl [Sat, 29 Aug 2015 16:15:36 +0000 (18:15 +0200)] 
Remove unnecessary extra_cppflags, extra_ldflags and all_ldflags variables

9 years agoImprove signal handling
Joel Rosdahl [Sat, 29 Aug 2015 16:09:37 +0000 (18:09 +0200)] 
Improve signal handling

* Block signals while manipulating data read by the signal handler.
* If ccache receives SIGTERM, kill compiler as well. (Other signals like
  SIGINT are sent to the whole process group.)
* Die appropriately at the end of the signal handler by resending the
  signal instead of exiting.

9 years agoWait for compiler subprocess to exit before exiting from a signal
Joel Rosdahl [Mon, 17 Aug 2015 19:01:35 +0000 (21:01 +0200)] 
Wait for compiler subprocess to exit before exiting from a signal

This should fix a race condition (albeit a quite unlikely one) related
to removal of the compiler output file(s).

9 years agoMake conversion-to-bool explicit to avoid warnings on legacy systems
Joel Rosdahl [Mon, 17 Aug 2015 17:38:11 +0000 (19:38 +0200)] 
Make conversion-to-bool explicit to avoid warnings on legacy systems

9 years agoFix regression in recent change related to zlib in nonstandard location
Joel Rosdahl [Mon, 17 Aug 2015 17:05:14 +0000 (19:05 +0200)] 
Fix regression in recent change related to zlib in nonstandard location

To allow for specifying a -L flag in LDFLAGS and have it take effect for
-lz, 0220de9c8ebfb18caae2ac1aa163d060e98ceade put -lz in extra_libs
instead of extra_ldflags. However, extra_libs is supposed to contain
paths to libraries which are prerequisites of the ccache link rule, and
some older versions of make got confused by seeing -lz as a
prerequisite.

This fix is to revert 0220de9c8ebfb18caae2ac1aa163d060e98ceade and
instead make sure that LDFLAGS comes before extra_ldflags.

9 years agoPrepare for v3.2.3 v3.2.3
Joel Rosdahl [Sun, 16 Aug 2015 12:11:45 +0000 (14:11 +0200)] 
Prepare for v3.2.3

9 years agoBail out on --save-temps, an alias for -save-temps
Michael Marineau [Thu, 9 Jul 2015 20:42:23 +0000 (13:42 -0700)] 
Bail out on --save-temps, an alias for -save-temps

9 years agoUse correct key for "file info indexes" in --dump-manifest output
Joel Rosdahl [Sat, 15 Aug 2015 12:38:33 +0000 (14:38 +0200)] 
Use correct key for "file info indexes" in --dump-manifest output

10 years agoExit properly from exit handler
Joel Rosdahl [Sun, 9 Aug 2015 20:07:11 +0000 (22:07 +0200)] 
Exit properly from exit handler

This fixes a problem where two SIGINT (Ctrl+C) signals were needed to
terminate an ongoing compilation. (The first SIGINT terminated the
compiler which exited with non-zero status, which ccache then went on
interpreting as an ordinary failed compilation, leading to rerunning the
compiler via failed().)

10 years agouncrustify: Add sp_after_comma
Joel Rosdahl [Fri, 7 Aug 2015 15:45:25 +0000 (17:45 +0200)] 
uncrustify: Add sp_after_comma

10 years agoDon't mention source code hash bug fix in 3.2.2
Joel Rosdahl [Fri, 7 Aug 2015 15:03:56 +0000 (17:03 +0200)] 
Don't mention source code hash bug fix in 3.2.2

It was never a problem in the 3.2 track.

10 years agotest: Make subst_env_in_string not depend on existing environment
Joel Rosdahl [Wed, 5 Aug 2015 15:38:40 +0000 (17:38 +0200)] 
test: Make subst_env_in_string not depend on existing environment

10 years agoUpdate source code style according to uncrustify
Joel Rosdahl [Sat, 1 Aug 2015 20:56:03 +0000 (22:56 +0200)] 
Update source code style according to uncrustify

10 years agoAdd uncrustify config and make rule
Joel Rosdahl [Sat, 1 Aug 2015 20:42:58 +0000 (22:42 +0200)] 
Add uncrustify config and make rule

10 years agoSource code style tweaks
Joel Rosdahl [Sat, 1 Aug 2015 20:07:10 +0000 (22:07 +0200)] 
Source code style tweaks

10 years agoMinor tweaking to comments
Joel Rosdahl [Sun, 26 Jul 2015 14:38:35 +0000 (16:38 +0200)] 
Minor tweaking to comments

10 years agoOnly log "Disabling direct mode" once when failing to read include file
Joel Rosdahl [Sun, 5 Jul 2015 16:09:05 +0000 (18:09 +0200)] 
Only log "Disabling direct mode" once when failing to read include file

10 years agoUpdate NEWS
Joel Rosdahl [Sun, 28 Jun 2015 18:48:42 +0000 (20:48 +0200)] 
Update NEWS

10 years agoMinor cleanups
Joel Rosdahl [Sun, 28 Jun 2015 18:44:12 +0000 (20:44 +0200)] 
Minor cleanups

10 years agoDwarfFission: -gsplit-dwarf support
Chiaki Ishikawa [Thu, 25 Jun 2015 08:33:49 +0000 (17:33 +0900)] 
DwarfFission: -gsplit-dwarf support

10 years agoAvoid calling exit() inside an exit handler
Joel Rosdahl [Wed, 3 Jun 2015 19:10:46 +0000 (21:10 +0200)] 
Avoid calling exit() inside an exit handler

10 years agoSupport external zlib in nonstandard directory
Joel Rosdahl [Mon, 1 Jun 2015 20:06:00 +0000 (22:06 +0200)] 
Support external zlib in nonstandard directory

Patch by David Froger.

10 years agotest: drop perl requirement
Mike Frysinger [Mon, 11 May 2015 03:03:58 +0000 (23:03 -0400)] 
test: drop perl requirement

Since perl is used in just one place and can easily be replaced by a
little bit of shell, do so.  This makes testing on limited systems
easier.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
10 years agoPrepare for v3.2.2 v3.2.2
Joel Rosdahl [Sun, 10 May 2015 12:23:49 +0000 (14:23 +0200)] 
Prepare for v3.2.2

10 years agoUpdate NEWS
Joel Rosdahl [Sun, 10 May 2015 12:16:41 +0000 (14:16 +0200)] 
Update NEWS

10 years agoTweak comment
Joel Rosdahl [Sun, 10 May 2015 12:16:33 +0000 (14:16 +0200)] 
Tweak comment

10 years agoMention next unreleased version in NEWS
Joel Rosdahl [Mon, 27 Apr 2015 19:05:46 +0000 (21:05 +0200)] 
Mention next unreleased version in NEWS

10 years agoRemove signal-unsafe code from signal handler
Joel Rosdahl [Mon, 27 Apr 2015 19:03:07 +0000 (21:03 +0200)] 
Remove signal-unsafe code from signal handler

10 years agoFix build error when compiling ccache with recent clang versions
Joel Rosdahl [Mon, 27 Apr 2015 18:48:56 +0000 (20:48 +0200)] 
Fix build error when compiling ccache with recent clang versions

10 years agoUpdate NEWS
Joel Rosdahl [Sun, 19 Apr 2015 11:38:29 +0000 (13:38 +0200)] 
Update NEWS

10 years agoCorrect doc string of stats_update_size
Joel Rosdahl [Wed, 4 Feb 2015 20:17:59 +0000 (21:17 +0100)] 
Correct doc string of stats_update_size

10 years agoMinor style tweaks
Joel Rosdahl [Wed, 4 Feb 2015 20:17:36 +0000 (21:17 +0100)] 
Minor style tweaks

10 years agoFix minor memory leaks
Joel Rosdahl [Wed, 4 Feb 2015 20:17:17 +0000 (21:17 +0100)] 
Fix minor memory leaks

10 years agoAdd support for coverage (compiling for gcov)
Anders Björklund [Tue, 2 Sep 2014 20:56:50 +0000 (22:56 +0200)] 
Add support for coverage (compiling for gcov)

Store the coverage notes (.gcno file) in the cache, next to the object.
If called on a file without actual code, like a header, then generate an
empty file in the cache to be able to separate this case from file missing.
Newer versions of gcc will generate a small file instead of not generating.

In the object file generated with -fprofile-arcs, the runtime output file
for the coverage data (.gcda file) is created from the output filename.
Make sure to hash this path to avoid cache hits with another absolute path.
Also make sure to use the source file path, since this is in the notes.

10 years agoDon't assume that succeeding libc calls don't modify errno
Joel Rosdahl [Sun, 29 Mar 2015 15:08:37 +0000 (17:08 +0200)] 
Don't assume that succeeding libc calls don't modify errno

10 years agoUpdate copyright years
Joel Rosdahl [Sun, 22 Mar 2015 09:26:18 +0000 (10:26 +0100)] 
Update copyright years

10 years agoIntroduce logging wrappers for stat/lstat/fstat functions
Joel Rosdahl [Thu, 19 Mar 2015 20:27:26 +0000 (21:27 +0100)] 
Introduce logging wrappers for stat/lstat/fstat functions

10 years agoHarden logging, perror() replaced with fatal(), unlink() failure recorded
Chiaki ISHIKAWA [Thu, 19 Mar 2015 14:46:35 +0000 (23:46 +0900)] 
Harden logging, perror() replaced with fatal(), unlink() failure recorded

10 years agoAlways check the result of stat() system calls
Chiaki ISHIKAWA [Wed, 18 Mar 2015 15:55:04 +0000 (00:55 +0900)] 
Always check the result of stat() system calls

10 years agoLog failure of opening file to hash
Chiaki ISHIKAWA [Wed, 18 Mar 2015 15:34:48 +0000 (00:34 +0900)] 
Log failure of opening file to hash

10 years agoWipe the whole cached result on failure retrieving a cached file
Joel Rosdahl [Mon, 16 Mar 2015 21:31:33 +0000 (22:31 +0100)] 
Wipe the whole cached result on failure retrieving a cached file

As suggested by Chiaki ISHIKAWA <ishikawa@yk.rim.or.jp>.

10 years agoUse x_unlink instead of unlink per HACKING.txt
Chiaki ISHIKAWA [Tue, 10 Mar 2015 12:28:27 +0000 (21:28 +0900)] 
Use x_unlink instead of unlink per HACKING.txt

10 years agoUpdate NEWS
Joel Rosdahl [Sun, 8 Mar 2015 19:57:32 +0000 (20:57 +0100)] 
Update NEWS

10 years agoAdd test case for CCACHE_COMPILERCHECK=string:<value>
Joel Rosdahl [Sun, 8 Mar 2015 19:53:16 +0000 (20:53 +0100)] 
Add test case for CCACHE_COMPILERCHECK=string:<value>

10 years agoSupport syntax CCACHE_COMPILERCHECK=string:<value>
Jiang Jiang [Tue, 2 Dec 2014 16:23:16 +0000 (17:23 +0100)] 
Support syntax CCACHE_COMPILERCHECK=string:<value>

This can be faster than running a command directly, because the
command to run might just produce the same result for every ccache
invocation. By reading it from config file or environment variable
we can just run that command once and store the result in the string
following "string:" and reusing it.

For example when we want to use clang revision for clang built from
SVN trunk, we can just call clang --version once and store the
revision number like:

  export CCACHE_COMPILERCHECK=string:218707

(Assuming 218707 is the current build revision.)

10 years agoBail out on too hard compiler option -fplugin=libcc1plugin
Joel Rosdahl [Sun, 8 Mar 2015 16:13:36 +0000 (17:13 +0100)] 
Bail out on too hard compiler option -fplugin=libcc1plugin

Based on patch from Jan Kratochvil.

10 years agoBail out on too hard compiler option "-fmodules"
Joel Rosdahl [Sun, 8 Mar 2015 16:08:13 +0000 (17:08 +0100)] 
Bail out on too hard compiler option "-fmodules"

10 years agoAvoid unnecessary copy of object file on cache miss
Joel Rosdahl [Sat, 7 Mar 2015 16:39:54 +0000 (17:39 +0100)] 
Avoid unnecessary copy of object file on cache miss

As noted by Chiaki Ishikawa, ccache performs an unnecessary copy of the
object file from the cache on a cache miss. This was an refactoring
oversight in 18a645451194becb832bd1ff4fee1c1e9f3d0dc5.

10 years agoFixup after merge of 3.1-maint
Joel Rosdahl [Sat, 7 Mar 2015 15:36:18 +0000 (16:36 +0100)] 
Fixup after merge of 3.1-maint

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Sat, 7 Mar 2015 15:30:57 +0000 (16:30 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Prepare for v3.1.11

10 years agoPrepare for v3.1.11 v3.1.11
Joel Rosdahl [Sat, 7 Mar 2015 15:30:10 +0000 (16:30 +0100)] 
Prepare for v3.1.11

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Sat, 7 Mar 2015 15:26:39 +0000 (16:26 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Prepare for v3.1.11
  Update NEWS.txt
  Tweak copyright years
  Fix comment scanning bug in hash_source_code_string

Conflicts:
NEWS.txt
dev.mk.in
hashutil.c
test.sh
test/test_hashutil.c

10 years agoPrepare for v3.1.11
Joel Rosdahl [Sat, 7 Mar 2015 15:04:07 +0000 (16:04 +0100)] 
Prepare for v3.1.11

10 years agoUpdate NEWS.txt
Joel Rosdahl [Sat, 7 Mar 2015 15:02:33 +0000 (16:02 +0100)] 
Update NEWS.txt

10 years agoTweak copyright years
Joel Rosdahl [Sat, 7 Mar 2015 15:02:21 +0000 (16:02 +0100)] 
Tweak copyright years

10 years agoFix comment scanning bug in hash_source_code_string
Joel Rosdahl [Fri, 20 Feb 2015 19:32:33 +0000 (20:32 +0100)] 
Fix comment scanning bug in hash_source_code_string

hash_source_code_string tries to ignore __DATE__/__TIME strings in
comments, but fails to parse code that contains character literal of a
double quote. This could result in false cache hits when the source code
happens to contain '"' followed by " /*" or " //" (with variations).

The fix is to do like it's already done in ccache 3.2: Don't try to be
overly clever about __DATE__/__TIME__, just check for those strings
anywhere in the source code string.

10 years agoMinor coding style tweaks
Joel Rosdahl [Sat, 7 Mar 2015 12:49:29 +0000 (13:49 +0100)] 
Minor coding style tweaks

10 years agoUpdate NEWS
Joel Rosdahl [Mon, 9 Feb 2015 20:49:09 +0000 (21:49 +0100)] 
Update NEWS

10 years agoDon't clean up the clang diagnostics file in failure cases
ryb [Sat, 7 Feb 2015 14:30:16 +0000 (15:30 +0100)] 
Don't clean up the clang diagnostics file in failure cases

It isn't necessary to remove the file as it will be overwritten when re-running
the compiler in failed(). tmp_unlink() is the wrong function to use in any case,
as the file is not temporary and could be on an NFS volume (see the comment for
tmp_unlink()).

10 years agoDon't delete the clang diagnostics file after compiler failures
ryb [Sat, 7 Feb 2015 14:01:34 +0000 (15:01 +0100)] 
Don't delete the clang diagnostics file after compiler failures

move_file() returns an error when called with the same source and destination,
causing the diagnostics file to be removed.

As of 18a645451 ("Create destination file and then copy into cache instead of
the opposite") it is no longer necessary to move the diagnostics file at all
after a compiler failure.

10 years agoRemove redundant tmp_dia variable in to_cache()
ryb [Sat, 7 Feb 2015 13:33:37 +0000 (14:33 +0100)] 
Remove redundant tmp_dia variable in to_cache()

It is always equal to output_dia. The next commit will no longer move the
output_dia file to itself, which doesn't make much sense.

10 years agoRemove incorrect preconditions for outputting captured stderr
ryb [Sat, 7 Feb 2015 13:28:48 +0000 (14:28 +0100)] 
Remove incorrect preconditions for outputting captured stderr

errno is set in an unrelated system call. In my tests involving compiler
failures, it is last set to ENOENT in from_cache() when calling stat() for the
cached object, accidentally making "errno == ENOENT" true.

The condition was no longer necessary as of 18a645451 ("Create destination file
and then copy into cache instead of the opposite"), as the temp output file no
longer needed to be moved.

10 years agoLink with -lws2_32 on Windows
Joel Rosdahl [Wed, 28 Jan 2015 22:15:07 +0000 (23:15 +0100)] 
Link with -lws2_32 on Windows

10 years agoVarious fixes in WIN32-specific code
Joel Rosdahl [Wed, 28 Jan 2015 22:15:01 +0000 (23:15 +0100)] 
Various fixes in WIN32-specific code

* Avoid potential buffer overflow in add_exe_ext_if_no_to_fullpath.
* Avoid using zero-padding strncpy function.
* Removed superfluous newline characters from log messages.
* For consistency, moved variable declarations to the top of the scope
  to please older compilers.
* For consistency, used C89-style comments to please older compilers.
* Fixed source code formatting.

10 years agofix stdout, stderr if compiler failed
leanid [Fri, 5 Dec 2014 10:44:03 +0000 (13:44 +0300)] 
fix stdout, stderr if compiler failed

10 years agofix all jrosdahl commentes on previous patch, and test on windows ndk with clang...
leanid [Thu, 4 Dec 2014 14:25:12 +0000 (17:25 +0300)] 
fix all jrosdahl commentes on previous patch, and test on windows ndk with clang, g++

10 years agofix windows build and successfully tested on windows with android NDK
leanid [Thu, 20 Nov 2014 13:10:03 +0000 (16:10 +0300)] 
fix windows build and successfully tested on windows with android NDK

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Fri, 26 Dec 2014 09:10:20 +0000 (10:10 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Include info on CCACHE_CPP2 in hash

Conflicts:
NEWS.txt
ccache.c
test.sh

10 years agoInclude info on CCACHE_CPP2 in hash
Joel Rosdahl [Fri, 26 Dec 2014 09:07:25 +0000 (10:07 +0100)] 
Include info on CCACHE_CPP2 in hash

Made hash of cached result created with and without CCACHE_CPP2 different.
This makes it possible to rebuild with CCACHE_CPP2 set without having to
clear the cache to get new results.

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Sat, 13 Dec 2014 13:10:36 +0000 (14:10 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Spelling fix

10 years agoSpelling fix
Ville Skyttä [Fri, 12 Dec 2014 08:59:17 +0000 (10:59 +0200)] 
Spelling fix

10 years agoPrepare for v3.2.1 v3.2.1
Joel Rosdahl [Wed, 10 Dec 2014 19:40:05 +0000 (20:40 +0100)] 
Prepare for v3.2.1

10 years agoSet correct permission for stats, manifest and ccache.conf files
Joel Rosdahl [Wed, 10 Dec 2014 17:40:38 +0000 (18:40 +0100)] 
Set correct permission for stats, manifest and ccache.conf files

This fixes a regression in a07f46a3b0f7e452d50690b831bb4c99fbc6650f and
fc61ca9a9232f26ee3f714d4b8738d916f6948ff where mkstemp was introduced for
creating temporary files. However, mkstemp creates files with 0600
permissions, which is bad for temporary files that are renamed to a
persistent name in the cache.

10 years agoMerge branch '3.1-maint' into 3.2-maint
Joel Rosdahl [Tue, 9 Dec 2014 20:22:28 +0000 (21:22 +0100)] 
Merge branch '3.1-maint' into 3.2-maint

* 3.1-maint:
  Revert "Do not rely on pids being unique"

10 years agoRevert "Do not rely on pids being unique"
Joel Rosdahl [Tue, 9 Dec 2014 20:13:33 +0000 (21:13 +0100)] 
Revert "Do not rely on pids being unique"

This reverts commit a07f46a3b0f7e452d50690b831bb4c99fbc6650f.

It turned out to be a bad idea to use mkstemp for temporary files that are
renamed into files to save in the cache since mkstemp creates the file with
permissions 0600.

10 years agoCreate CACHEDIR.TAG files in [0-9a-f] subdirectories to avoid losing the config
Joel Rosdahl [Sun, 7 Dec 2014 15:58:59 +0000 (16:58 +0100)] 
Create CACHEDIR.TAG files in [0-9a-f] subdirectories to avoid losing the config

10 years agoWhitespace cleanup
Joel Rosdahl [Sun, 7 Dec 2014 15:45:45 +0000 (16:45 +0100)] 
Whitespace cleanup

10 years agodoc: Add missing documentation for max_files and max_size options
Joel Rosdahl [Thu, 4 Dec 2014 21:09:52 +0000 (22:09 +0100)] 
doc: Add missing documentation for max_files and max_size options

10 years agodoc: Sort configuration options correctly and fix typo
Joel Rosdahl [Thu, 4 Dec 2014 21:06:10 +0000 (22:06 +0100)] 
doc: Sort configuration options correctly and fix typo

10 years agoMake default cache size suffix be "G", like documented
Joel Rosdahl [Wed, 3 Dec 2014 21:14:01 +0000 (22:14 +0100)] 
Make default cache size suffix be "G", like documented

10 years agotest: Unset GCC_COLORS to avoid confusing argument processing tests
Joel Rosdahl [Wed, 19 Nov 2014 20:48:00 +0000 (21:48 +0100)] 
test: Unset GCC_COLORS to avoid confusing argument processing tests

10 years agoPass -fdiagnostics-color=auto to the compiler even if stderr is redirected
Joel Rosdahl [Wed, 19 Nov 2014 20:23:20 +0000 (21:23 +0100)] 
Pass -fdiagnostics-color=auto to the compiler even if stderr is redirected

This fixes a problem when e.g. a configure test probes if the compiler
(wrapped via ccache) supports -fdiagnostics-color=auto. If ccache discards
the option since configure redirects stderr, then configure will
erroneously think that the compiler supports the option and the build will
fail later on (if stderr refers to a TTY).

10 years agoPrepare for v3.2 v3.2
Joel Rosdahl [Mon, 17 Nov 2014 18:57:25 +0000 (19:57 +0100)] 
Prepare for v3.2

10 years agoDon't populate configuration from environment when running tests
Joel Rosdahl [Mon, 17 Nov 2014 18:46:46 +0000 (19:46 +0100)] 
Don't populate configuration from environment when running tests

10 years agoConvert inline "if"s to "if"s with body
Joel Rosdahl [Sun, 16 Nov 2014 13:49:26 +0000 (14:49 +0100)] 
Convert inline "if"s to "if"s with body

10 years agoBail out on empty CCACHE_DIR
Joel Rosdahl [Sat, 15 Nov 2014 15:26:02 +0000 (16:26 +0100)] 
Bail out on empty CCACHE_DIR

10 years agoFix bug in dirname
Joel Rosdahl [Sat, 15 Nov 2014 15:17:15 +0000 (16:17 +0100)] 
Fix bug in dirname

This avoids a crash when running "ccache -s" with CCACHE_DIR="".

10 years agoDon't include -Wl,... in hash since it doesn't affect compilation
Joel Rosdahl [Sat, 15 Nov 2014 14:59:39 +0000 (15:59 +0100)] 
Don't include -Wl,... in hash since it doesn't affect compilation

As suggested by Mutsumi Ishikawa.