]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
6 years agoprocess_preprocessed_file: Move gnu_getcwd() out of tight loop
Mike Gulick [Tue, 24 Jul 2018 19:23:03 +0000 (15:23 -0400)] 
process_preprocessed_file: Move gnu_getcwd() out of tight loop

Change process_preprocessed_file from calling getcwd() once per line
in the preprocessed source file to once at the start of the function.
The performance of getcwd() on Mac seems to be terrible compared to
Linux.  On a macOS 10.13 build machine, this change improves
process_preprocessed_file runtime on a 10MB preprocessed file from 75
seconds to .75 seconds.

6 years agoMerge branch '3.4-maint'
Joel Rosdahl [Sat, 18 Aug 2018 20:28:24 +0000 (22:28 +0200)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Update NEWS
  Add handling of separate -target parameter
  Bail out on too hard clang option “-MJ”

6 years agoMake sure to install gperf for analyze
Anders F Björklund [Sat, 28 Jul 2018 10:30:10 +0000 (12:30 +0200)] 
Make sure to install gperf for analyze

Also move the 32-bit libraries
to the 32-bit target (only).

Closes #290

6 years agoUpdate NEWS
Joel Rosdahl [Tue, 14 Aug 2018 19:49:04 +0000 (21:49 +0200)] 
Update NEWS

6 years agoAdd handling of separate -target parameter
Anders F Björklund [Tue, 3 Jul 2018 16:54:34 +0000 (18:54 +0200)] 
Add handling of separate -target parameter

Otherwise you will get an error in the log:

"x86_64-pc-linux-gnu is not a regular file,
 not considering as input file"

The argument seems to be specific to clang.

6 years agoUpdate NEWS
Joel Rosdahl [Tue, 14 Aug 2018 19:44:39 +0000 (21:44 +0200)] 
Update NEWS

6 years agoAdd a Vagrantfile for testing on FreeBSD
Anders F Björklund [Tue, 12 Jun 2018 21:51:35 +0000 (23:51 +0200)] 
Add a Vagrantfile for testing on FreeBSD

6 years agoCompiler "cc" might still be the same as "clang"
Anders F Björklund [Tue, 12 Jun 2018 21:11:44 +0000 (23:11 +0200)] 
Compiler "cc" might still be the same as "clang"

It migt also be "gcc", but try to play it safe.

6 years agoAdd FreeBSD compatibility to test suites
Anders F Björklund [Tue, 12 Jun 2018 20:23:57 +0000 (22:23 +0200)] 
Add FreeBSD compatibility to test suites

6 years agoAdd patch for X/Open, from FreeBSD ports
Anders F Björklund [Tue, 12 Jun 2018 19:58:29 +0000 (21:58 +0200)] 
Add patch for X/Open, from FreeBSD ports

Without this, e.g. "strndup" isn't visible.

6 years agoBail out on too hard clang option “-MJ”
Joel Rosdahl [Tue, 14 Aug 2018 19:14:36 +0000 (21:14 +0200)] 
Bail out on too hard clang option “-MJ”

See discussion in pull request #277.

6 years agoAvoid some shellcheck excludes that do make sense
Anders F Björklund [Mon, 11 Jun 2018 18:34:35 +0000 (20:34 +0200)] 
Avoid some shellcheck excludes that do make sense

6 years agoAdd target to run shellcheck on test bash scripts
Anders F Björklund [Mon, 11 Jun 2018 18:25:02 +0000 (20:25 +0200)] 
Add target to run shellcheck on test bash scripts

6 years agoAdd missing delimiter when hashing “-MF”
Joel Rosdahl [Fri, 10 Aug 2018 19:13:03 +0000 (21:13 +0200)] 
Add missing delimiter when hashing “-MF”

6 years agoImprove printing of “stats zeroed” statistics
Joel Rosdahl [Fri, 10 Aug 2018 11:25:17 +0000 (13:25 +0200)] 
Improve printing of “stats zeroed” statistics

* Refactored how formatting functions work in “ccache -s” output. They
  now return a formatted string (or NULL for “don’t print statistics
  line at all”) instead of printing the value.
* Added a new format_timestamp function.
* Added STATS_ZEROTIMESTAMP to the common stats_info array instead of
  being a special case.
* Let the STATS_ZEROTIMESTAMP value be 0 for new caches so that the
  “stats zeroed” statistics line only shows up when “ccache -z” actually
  has been called.

Closes #285.

7 years agoUpdate NEWS
Joel Rosdahl [Wed, 8 Aug 2018 12:53:14 +0000 (14:53 +0200)] 
Update NEWS

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Wed, 8 Aug 2018 12:27:52 +0000 (14:27 +0200)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Remove debug log
  Improve logging related to hashing of the CWD

7 years agoAdd configure option to disable man pages
Anders F Björklund [Thu, 7 Jun 2018 19:20:19 +0000 (21:20 +0200)] 
Add configure option to disable man pages

Building the man page requires asciidoc, if building from the source
repository. Add option to only install the program, but not the man.

When building from the release tarball, the man page is already built.
So we can still default to installing it, and requiring asciidoc/a2x.

Closes #264

7 years agoRemove debug log
Joel Rosdahl [Thu, 7 Jun 2018 19:52:09 +0000 (21:52 +0200)] 
Remove debug log

7 years agoImprove logging related to hashing of the CWD
Joel Rosdahl [Thu, 7 Jun 2018 19:48:42 +0000 (21:48 +0200)] 
Improve logging related to hashing of the CWD

7 years agoImprove installation instructions
Joel Rosdahl [Thu, 7 Jun 2018 19:31:38 +0000 (21:31 +0200)] 
Improve installation instructions

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Mon, 7 May 2018 19:46:09 +0000 (21:46 +0200)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Update NEWS
  Avoid TOCTOU issue when deciding if config is valid

7 years agoUpdate NEWS
Joel Rosdahl [Mon, 7 May 2018 19:45:12 +0000 (21:45 +0200)] 
Update NEWS

7 years agoAvoid TOCTOU issue when deciding if config is valid
Tomasz Miąsko [Wed, 2 May 2018 00:00:00 +0000 (00:00 +0000)] 
Avoid TOCTOU issue when deciding if config is valid

Previously, a separate call to access had been used to distinguish
between I/O errors and invalid configuration file. This could lead to
spurious errors if configuration file have been created in-between call
to conf_read and access. Use errno to tell those two cases apart.

Closes #260.

7 years agoFix code style
Joel Rosdahl [Mon, 7 May 2018 18:10:44 +0000 (20:10 +0200)] 
Fix code style

7 years agohashutil: fix memory-leak/double free
Havard Graff [Tue, 24 Apr 2018 20:05:42 +0000 (22:05 +0200)] 
hashutil: fix memory-leak/double free

7 years agoFix some casting warnings
Havard Graff [Tue, 24 Apr 2018 20:05:01 +0000 (22:05 +0200)] 
Fix some casting warnings

7 years agoUpdate NEWS
Joel Rosdahl [Mon, 7 May 2018 17:54:17 +0000 (19:54 +0200)] 
Update NEWS

7 years agoAdd the sanitize blacklist contents to the hash
Anders F Björklund [Sun, 22 Apr 2018 09:49:32 +0000 (11:49 +0200)] 
Add the sanitize blacklist contents to the hash

7 years agoUpdate NEWS
Joel Rosdahl [Tue, 17 Apr 2018 19:57:01 +0000 (21:57 +0200)] 
Update NEWS

7 years agoSimplify logic
Joel Rosdahl [Tue, 17 Apr 2018 19:53:32 +0000 (21:53 +0200)] 
Simplify logic

7 years agoPrint the time when stats last updated
Anders F Björklund [Mon, 9 Apr 2018 18:35:25 +0000 (20:35 +0200)] 
Print the time when stats last updated

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Mon, 23 Apr 2018 20:04:12 +0000 (22:04 +0200)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Use double when calculating cache thresholds
  Add a 32-bit build target, using multilib (-m32)
  Convert float config to double, add rounding
  Upgrade clang to 5.0, for the Travis docker
  Make sure to export ASAN_OPTIONS properly
  Add small helper to run all Travis tests
  Make sure to call configure with right path
  Add a travis-build container, for running locally
  Look for -fdebug-prefix-map feature explicitly
  Improve the Travis build matrix
  Fix log printing of before/after cleanup
  Remove irrelevant variable assignment in wipe_dir
  win32: Fix CCACHE_COMPILERCHECK=mtime test case

7 years agoUse double when calculating cache thresholds
Joel Rosdahl [Mon, 23 Apr 2018 19:56:32 +0000 (21:56 +0200)] 
Use double when calculating cache thresholds

We could at least in theory have large enough caches that float’s
precision won’t be enough.

Also removed include of <float.h> which I think is superfluous.

7 years agoAdd a 32-bit build target, using multilib (-m32)
Anders F Björklund [Sun, 8 Apr 2018 11:51:06 +0000 (13:51 +0200)] 
Add a 32-bit build target, using multilib (-m32)

Use gcc-multilib rather than doing a full cross-compile.
But set the --host, just in case something is listening.

7 years agoConvert float config to double, add rounding
Anders F Björklund [Sun, 8 Apr 2018 13:28:58 +0000 (15:28 +0200)] 
Convert float config to double, add rounding

We were getting different results when converting "float" to
integers, on 32-bit versus 64-bit platforms. So use "roundf".

Also exposed a typo in another testsuite, where we only cleaned
files as a result of roundoff... Make cleaning explicit again.

7 years agoUpgrade clang to 5.0, for the Travis docker
Anders F Björklund [Sat, 7 Apr 2018 12:29:52 +0000 (14:29 +0200)] 
Upgrade clang to 5.0, for the Travis docker

7 years agoMake sure to export ASAN_OPTIONS properly
Anders F Björklund [Sat, 7 Apr 2018 12:50:33 +0000 (14:50 +0200)] 
Make sure to export ASAN_OPTIONS properly

7 years agoAdd small helper to run all Travis tests
Anders F Björklund [Sun, 1 Apr 2018 12:40:05 +0000 (14:40 +0200)] 
Add small helper to run all Travis tests

The idea behind this script is to run the same checks as .travis.yml
but locally instead. It is not identical, but should be close enough.

Note: this does not include any tests for the osx or cuda platforms,
only the linux targets - although that does include the mingw build.

7 years agoMake sure to call configure with right path
Anders F Björklund [Sun, 1 Apr 2018 12:39:44 +0000 (14:39 +0200)] 
Make sure to call configure with right path

7 years agoAdd a travis-build container, for running locally
Anders F Björklund [Sun, 1 Apr 2018 11:53:02 +0000 (13:53 +0200)] 
Add a travis-build container, for running locally

This is not the actual Travis docker container, but it
should be similar enough for doing local verification:

make travis
make travis CC=clang
make travis CC=clang CFLAGS="-fsanitize=address -g" ASAN_OPTIONS="detect_leaks=0"
make travis CC=i686-w64-mingw32-gcc HOST="--host=i686-w64-mingw32" TEST="unittest/run.exe"

7 years agoLook for -fdebug-prefix-map feature explicitly
Anders F Björklund [Sun, 1 Apr 2018 11:13:33 +0000 (13:13 +0200)] 
Look for -fdebug-prefix-map feature explicitly

Seems like old clang-3.4 didn't have this feature, while the
newer MinGW might. So remove the hardcoding, and do the check.

7 years agoImprove the Travis build matrix
Anders F Björklund [Sun, 1 Apr 2018 07:39:15 +0000 (09:39 +0200)] 
Improve the Travis build matrix

Run in containers where possible, save the installations for the
targets that actually need to do them (currently: mingw and cuda)

7 years agoFix log printing of before/after cleanup
Anders F Björklund [Fri, 30 Mar 2018 19:23:04 +0000 (21:23 +0200)] 
Fix log printing of before/after cleanup

Seems like MinGW doesn't have the %z (size_t) printf format
So add some %f casting variant, so that it works everywhere.

7 years agoRemove irrelevant variable assignment in wipe_dir
Joel Rosdahl [Mon, 23 Apr 2018 19:44:56 +0000 (21:44 +0200)] 
Remove irrelevant variable assignment in wipe_dir

7 years agowin32: Fix CCACHE_COMPILERCHECK=mtime test case
peterbudai@hotmail.com [Wed, 28 Mar 2018 20:20:12 +0000 (22:20 +0200)] 
win32: Fix CCACHE_COMPILERCHECK=mtime test case

Previously if compiler command was an .sh script, win32 version
automatically added an .EXE extension to the command line and
then test case failed. With this change .sh files won't get
appended by an EXE extension and test case successfully runs

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Sun, 25 Mar 2018 20:25:23 +0000 (22:25 +0200)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Prepare for v3.4.2
  direct .i mode: Don't create tmp.cpp_stderr file at all

7 years agoPrepare for v3.4.2 v3.4.2
Joel Rosdahl [Sun, 25 Mar 2018 20:22:56 +0000 (22:22 +0200)] 
Prepare for v3.4.2

7 years agodirect .i mode: Don't create tmp.cpp_stderr file at all
peterbudai@hotmail.com [Fri, 16 Mar 2018 22:54:16 +0000 (23:54 +0100)] 
direct .i mode: Don't create tmp.cpp_stderr file at all

Create tmp file only when it's actually needed.

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Tue, 13 Mar 2018 14:02:16 +0000 (15:02 +0100)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Clean up
  win32: Silence compiler warnings
  cleanup: Improve robustness when multiple cleanups run concurrently
  cleanup: Log size before cleaning
  Add x_try_unlink utility function
  test: Use helper functions instead of custom code
  test: Improve error messages from expect_{equal,different}_files

7 years agoClean up
Joel Rosdahl [Tue, 13 Mar 2018 13:38:09 +0000 (14:38 +0100)] 
Clean up

7 years agowin32: Silence compiler warnings
peterbudai@hotmail.com [Mon, 12 Mar 2018 20:38:39 +0000 (21:38 +0100)] 
win32: Silence compiler warnings

7 years agocleanup: Improve robustness when multiple cleanups run concurrently
Joel Rosdahl [Mon, 12 Mar 2018 21:25:28 +0000 (22:25 +0100)] 
cleanup: Improve robustness when multiple cleanups run concurrently

The file count/size counters are now intentionally subtracted even if
there file to delete has disappeared since the final cache size
calculation will be incorrect if they aren’t. This can happen when there
are several parallel ongoing cleanups of the same subdirectory.

Also removed the “delete sibling files” logic; it’s unnecessary for all
siblings except .stderr since that’s the only file in a result that is
optional. Any other missing file will be detected by
get_file_from_cache.

7 years agocleanup: Log size before cleaning
Joel Rosdahl [Mon, 12 Mar 2018 21:05:17 +0000 (22:05 +0100)] 
cleanup: Log size before cleaning

7 years agoAdd x_try_unlink utility function
Joel Rosdahl [Mon, 12 Mar 2018 20:48:59 +0000 (21:48 +0100)] 
Add x_try_unlink utility function

It behaves like x_unlink but doesn’t log a failure if the file is
missing.

7 years agotest: Use helper functions instead of custom code
Joel Rosdahl [Mon, 12 Mar 2018 20:30:28 +0000 (21:30 +0100)] 
test: Use helper functions instead of custom code

7 years agotest: Improve error messages from expect_{equal,different}_files
Joel Rosdahl [Mon, 12 Mar 2018 20:20:17 +0000 (21:20 +0100)] 
test: Improve error messages from expect_{equal,different}_files

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Sun, 11 Mar 2018 15:08:37 +0000 (16:08 +0100)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Update NEWS
  Clean up
  Support out-of-source builds
  Be consistent with “Clang” and “NVCC” names in NEWS
  Don’t apply Clang workaround for PCH dependencies for other compilers

7 years agoUpdate NEWS
Joel Rosdahl [Sun, 11 Mar 2018 15:08:21 +0000 (16:08 +0100)] 
Update NEWS

7 years agoClean up
Joel Rosdahl [Sun, 11 Mar 2018 14:49:06 +0000 (15:49 +0100)] 
Clean up

7 years agoSupport out-of-source builds
Anders F Björklund [Sat, 10 Mar 2018 19:14:08 +0000 (20:14 +0100)] 
Support out-of-source builds

Separate (read-only) $srcdir and (output) $builddir

Still support both developer mode and dist (+check).

7 years agoBe consistent with “Clang” and “NVCC” names in NEWS
Joel Rosdahl [Sun, 11 Mar 2018 08:21:27 +0000 (09:21 +0100)] 
Be consistent with “Clang” and “NVCC” names in NEWS

7 years agoDon’t apply Clang workaround for PCH dependencies for other compilers
Joel Rosdahl [Sun, 11 Mar 2018 08:19:52 +0000 (09:19 +0100)] 
Don’t apply Clang workaround for PCH dependencies for other compilers

Closes #235.

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Wed, 7 Mar 2018 20:46:15 +0000 (21:46 +0100)] 
Merge branch '3.4-maint'

* 3.4-maint:
  cleanup: Remove special-casing of files from ccache 2.x
  Fix debug_prefix_map suite
  Improve AsciiDoc markup
  Improve man page generation
  Remove redundant .gitignore entries

7 years agocleanup: Remove special-casing of files from ccache 2.x
Joel Rosdahl [Tue, 6 Mar 2018 20:11:23 +0000 (21:11 +0100)] 
cleanup: Remove special-casing of files from ccache 2.x

It feels like a safe assumption that nobody will run ccache 3.4.x and
2.x on the same cache directory.

7 years agoFix debug_prefix_map suite
Timofei Kushnir [Wed, 28 Feb 2018 07:48:10 +0000 (10:48 +0300)] 
Fix debug_prefix_map suite

7 years agoImprove AsciiDoc markup
Joel Rosdahl [Tue, 6 Mar 2018 19:44:40 +0000 (20:44 +0100)] 
Improve AsciiDoc markup

7 years agoImprove man page generation
Joel Rosdahl [Sun, 4 Mar 2018 09:45:50 +0000 (10:45 +0100)] 
Improve man page generation

* Use AsciiDoc’s a2x tool instead of running xsltproc explicitly.
* Stow away ccache.1 in doc.
* Make AsciiDoc literals stand out as bold in the man page. We can now
  use properly literals instead of emphasis in the manual.

7 years agoRemove redundant .gitignore entries
Joel Rosdahl [Sun, 4 Mar 2018 09:44:19 +0000 (10:44 +0100)] 
Remove redundant .gitignore entries

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Thu, 1 Mar 2018 20:26:08 +0000 (21:26 +0100)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Change extension of AsciiDoc files to .adoc

7 years agoChange extension of AsciiDoc files to .adoc
Joel Rosdahl [Thu, 1 Mar 2018 20:20:05 +0000 (21:20 +0100)] 
Change extension of AsciiDoc files to .adoc

This should make them nicely rendered in the GitHub file tree.

7 years agoChange extension of AsciiDoc files to .adoc
Joel Rosdahl [Thu, 1 Mar 2018 20:20:05 +0000 (21:20 +0100)] 
Change extension of AsciiDoc files to .adoc

This should make them nicely rendered in the GitHub file tree.

7 years agoUpdate NEWS
Joel Rosdahl [Thu, 1 Mar 2018 20:02:16 +0000 (21:02 +0100)] 
Update NEWS

7 years agoApply code review suggestions
Geert Kloosterman [Thu, 1 Mar 2018 06:59:32 +0000 (07:59 +0100)] 
Apply code review suggestions

7 years agoAllow a pre-computed checksum file for precompiled headers
Geert Kloosterman [Mon, 19 Feb 2018 14:24:55 +0000 (15:24 +0100)] 
Allow a pre-computed checksum file for precompiled headers

Having large precompiled header files slows down direct mode off
CCache considerably. Allow CCache to check against a (much smaller)
pre-computed checksum file instead of the precompiled header file
itself. This checksum file will be used in the manifest instead of
the actual precompiled header file.

Note that to make this to work, the build system needs to keep a
checksum file in sync with the precompiled header.

The behavior can be activated by the `pch_external_checksum` option.

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Wed, 28 Feb 2018 21:13:04 +0000 (22:13 +0100)] 
Merge branch '3.4-maint'

* 3.4-maint:
  The Dockerfile was moved to a subdirectory

7 years agoThe Dockerfile was moved to a subdirectory
Anders F Björklund [Wed, 28 Feb 2018 16:30:38 +0000 (17:30 +0100)] 
The Dockerfile was moved to a subdirectory

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Sun, 25 Feb 2018 08:13:47 +0000 (09:13 +0100)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Fix paths to bundled zlib

7 years agoFix paths to bundled zlib
Joel Rosdahl [Sun, 25 Feb 2018 08:09:02 +0000 (09:09 +0100)] 
Fix paths to bundled zlib

Regression from the source code rearrangement in 4aa357782e48.

Also added a distcheck that verifies that “./configure
--with-bundled-zlib” works.

Closes #229.

7 years agoMerge branch '3.4-maint'
Joel Rosdahl [Wed, 21 Feb 2018 20:00:35 +0000 (21:00 +0100)] 
Merge branch '3.4-maint'

* 3.4-maint:
  Hash preprocessed headers located in “.gch directories” correctly

7 years agoHash preprocessed headers located in “.gch directories” correctly
Joel Rosdahl [Wed, 21 Feb 2018 19:58:45 +0000 (20:58 +0100)] 
Hash preprocessed headers located in “.gch directories” correctly

Previously, ccache would not pick up changes to such precompiled
headers, risking false positive cache hits.

7 years agoRename CCACHE_CC to CCACHE_COMPILER
Joel Rosdahl [Sat, 17 Feb 2018 09:51:20 +0000 (10:51 +0100)] 
Rename CCACHE_CC to CCACHE_COMPILER

7 years agoPrepare for v3.4.1 v3.4.1
Joel Rosdahl [Sun, 11 Feb 2018 18:14:47 +0000 (19:14 +0100)] 
Prepare for v3.4.1

7 years agoFix printing of version number in “ccache --version”
Joel Rosdahl [Sun, 11 Feb 2018 18:07:51 +0000 (19:07 +0100)] 
Fix printing of version number in “ccache --version”

Closes #225.

7 years agoPrepare for v3.4 v3.4
Joel Rosdahl [Sun, 11 Feb 2018 14:24:11 +0000 (15:24 +0100)] 
Prepare for v3.4

7 years agoUpdate lookup tables with new location of .gperf files
Joel Rosdahl [Sun, 11 Feb 2018 14:18:15 +0000 (15:18 +0100)] 
Update lookup tables with new location of .gperf files

7 years agoAdd update-authors make recipe and use it
Joel Rosdahl [Sat, 10 Feb 2018 20:59:07 +0000 (21:59 +0100)] 
Add update-authors make recipe and use it

7 years agoImprove README.md
Joel Rosdahl [Wed, 7 Feb 2018 18:13:16 +0000 (19:13 +0100)] 
Improve README.md

7 years agoRearrange files into suitable subdirectories, e.g. src and doc
Joel Rosdahl [Wed, 7 Feb 2018 11:14:49 +0000 (12:14 +0100)] 
Rearrange files into suitable subdirectories, e.g. src and doc

The top directory has become too crowded.

7 years agoSimplify initialize() slightly
Joel Rosdahl [Tue, 6 Feb 2018 20:58:19 +0000 (21:58 +0100)] 
Simplify initialize() slightly

7 years agoTreat unreadable conf file like missing instead of a fatal error
Joel Rosdahl [Tue, 6 Feb 2018 20:49:55 +0000 (21:49 +0100)] 
Treat unreadable conf file like missing instead of a fatal error

This reverts 0b18af47 and implements a better solution.

The major reason is to keep ccache transparent, i.e. to still have the
following behavior:

* If ccache returns exit code == 0, then any produced stderr comes from
  the compiler and only from the compiler.
* If ccache returns exit code != 0, then ccache may print error messages
  of its own.

The reason is that autoconf configure scripts have been known to fail
tests if the compiler emits anything to stderr even if the produced
result actually works. (And printing to stdout is also a no-no.)

7 years agoDocument caveats related to colored warnings from compilers
Joel Rosdahl [Mon, 5 Feb 2018 20:58:55 +0000 (21:58 +0100)] 
Document caveats related to colored warnings from compilers

7 years agoDocument more pitfalls with hard links
Joel Rosdahl [Mon, 5 Feb 2018 18:11:02 +0000 (19:11 +0100)] 
Document more pitfalls with hard links

7 years agoUse strftime instead of obsolete asctime function
Joel Rosdahl [Sun, 4 Feb 2018 09:47:06 +0000 (10:47 +0100)] 
Use strftime instead of obsolete asctime function

7 years agoFix most warnings from cppcheck 1.72
Joel Rosdahl [Sun, 4 Feb 2018 09:40:04 +0000 (10:40 +0100)] 
Fix most warnings from cppcheck 1.72

7 years agoChange “improvements” to “enhancements” in NEWS.txt
Joel Rosdahl [Sun, 4 Feb 2018 09:33:54 +0000 (10:33 +0100)] 
Change “improvements” to “enhancements” in NEWS.txt

Every change is hopefully an improvement.

7 years agoFix use-after-free error in 316b966b
Joel Rosdahl [Sat, 3 Feb 2018 21:56:11 +0000 (22:56 +0100)] 
Fix use-after-free error in 316b966b

7 years agoHash host compilers invoked by nvcc
Joel Rosdahl [Sat, 3 Feb 2018 20:16:26 +0000 (21:16 +0100)] 
Hash host compilers invoked by nvcc

See #145.

7 years agoIntroduce and use ARRAY_SIZE macro
Joel Rosdahl [Sat, 3 Feb 2018 09:42:22 +0000 (10:42 +0100)] 
Introduce and use ARRAY_SIZE macro

7 years agoHash '-ccbin' argument
Sam Gross [Tue, 1 Nov 2016 17:45:26 +0000 (10:45 -0700)] 
Hash '-ccbin' argument