mirror of
https://github.com/reactos/ccache.git
synced 2025-01-09 13:00:37 +00:00
Don't compile preprocessed source code when using -g3
This fixes bug #7190.
This commit is contained in:
parent
106533eab5
commit
574ab5a9af
3
NEWS
3
NEWS
@ -98,6 +98,9 @@ Changes since ccache 2.4:
|
||||
|
||||
- Added support for -Wp,-MD and -Wp,-MMD options.
|
||||
|
||||
- Debug information containing line numbers of predefined and command-line
|
||||
macros (enabled with the compiler option -g3) will now be correct.
|
||||
|
||||
- Corrected LRU cleanup handling of object files.
|
||||
|
||||
- utimes() is now used instead of utime() when available.
|
||||
|
7
ccache.c
7
ccache.c
@ -1248,6 +1248,13 @@ static void process_args(int argc, char **argv)
|
||||
if (strcmp(argv[i], "-g0") != 0) {
|
||||
enable_unify = 0;
|
||||
}
|
||||
if (strcmp(argv[i], "-g3") == 0) {
|
||||
/*
|
||||
* Fix for bug 7190 ("commandline macros (-D)
|
||||
* have non-zero lineno when using -g3").
|
||||
*/
|
||||
compile_preprocessed_source_code = 0;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user