Boie, Andrew P [Mon, 6 Aug 2012 23:30:55 +0000 (16:30 -0700)]
add support for '@' parameters
These indicate to the compiler that additional command line options
should be read from a text file. If encountered, read the file,
tokenize any arguments, and if any are found, do an in-place replacement
of the '@' parameter with the arguments within the file.
args_insert() added to insert a set of arguments into a position within
another set of arguments.
args_init_from_gcc_atfile() reads and processes the argument files using the
quoting/escape conventions that GCC expects.
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Boie, Andrew P [Tue, 31 Jul 2012 00:50:33 +0000 (17:50 -0700)]
add support for '@' parameters
These indicate to the compiler that additional command line options
should be read from a text file. If encountered, read the file,
tokenize any arguments, and if any are found, do an in-place replacement
of the '@' parameter with the arguments within the file.
args_insert() added to insert a set of arguments into a position within
another set of arguments.
args_init_from_string() has been improved so that any character may be
included by prefixing that character with a backslash, and support for
quoted arguments which pass special characters within the quotation marks
unmodified.
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Joel Rosdahl [Sun, 29 Jul 2012 21:27:31 +0000 (23:27 +0200)]
Merge branch 'maint'
* maint:
Simplify generation of relative automatic dependency target
Minor code cleanup
Add test for rewriting of absolute dependency arguments
Make dependency arguments relative to increase cache hits
Correct doc string of make_relative_path
Joel Rosdahl [Sun, 8 Jan 2012 14:17:00 +0000 (15:17 +0100)]
Merge branch 'master' into config
* master:
while (1) -> while (true)
Fixup after merge: Make directory creation failure fatal
Update NEWS
Also recognize -specs=file in addition to --specs=file
Revert GCC bug compatibility for -MTarg and -MQarg
Fix minor memory leaks
Correct log message when unify mode is enabled
Hash environment variables that affect the preprocessor output
Hash mtime or content of GCC plugins specified with -fplugin=
Use hash_compiler for explicit --specs= options as well
Refactor code into a hash_compiler function
Improve description on how to fix bad object files in the cache
Make failure to create files in cache fatal
Make failure to create cache directories fatal
Remove unused print_executed_command function
Handle non-writable CCACHE_DIR gracefully
Joel Rosdahl [Sun, 8 Jan 2012 12:28:27 +0000 (13:28 +0100)]
Merge branch 'maint'
* maint:
Update NEWS
Also recognize -specs=file in addition to --specs=file
Revert GCC bug compatibility for -MTarg and -MQarg
Fix minor memory leaks
Correct log message when unify mode is enabled
Hash environment variables that affect the preprocessor output
Hash mtime or content of GCC plugins specified with -fplugin=
Use hash_compiler for explicit --specs= options as well
Refactor code into a hash_compiler function
Improve description on how to fix bad object files in the cache
Make failure to create files in cache fatal
Make failure to create cache directories fatal
Remove unused print_executed_command function
Handle non-writable CCACHE_DIR gracefully
Joel Rosdahl [Sun, 8 Jan 2012 09:40:17 +0000 (10:40 +0100)]
Revert GCC bug compatibility for -MTarg and -MQarg
The bug addressed by commit 8c3039d676d71564e98d50f1ca8ba029d1efa46c has
been fixed in a recent GCC version. Since ccache currently can't change
behavior depending on compiler version, we have to choose the least
troublesome behavior.
Joel Rosdahl [Fri, 6 Jan 2012 15:32:45 +0000 (16:32 +0100)]
Merge branch 'maint'
* maint:
Correct log message when unify mode is enabled
Hash environment variables that affect the preprocessor output
Hash mtime or content of GCC plugins specified with -fplugin=
Use hash_compiler for explicit --specs= options as well
Refactor code into a hash_compiler function
Improve description on how to fix bad object files in the cache
Make failure to create files in cache fatal
Make failure to create cache directories fatal
Remove unused print_executed_command function
Handle non-writable CCACHE_DIR gracefully