no_system_headers can still be used as an (undocumented) alias.
Closes #337.
ccache includes the environment variables *LANG*, *LC_ALL*, *LC_CTYPE* and
*LC_MESSAGES* in the hash by default since they may affect localization of
compiler warning messages. Set this option to tell ccache not to do that.
-*no_system_headers*::
- By default, ccache will also include all system headers in the manifest.
- With this option set, ccache will only include system headers in the hash
- but not add the system header files to the list of include files.
*pch_defines*::
Be sloppy about **#define**s when precompiling a header file. See
<<_precompiled_headers,PRECOMPILED HEADERS>> for more information.
+*system_headers*::
+ By default, ccache will also include all system headers in the manifest.
+ With this option set, ccache will only include system headers in the hash
+ but not add the system header files to the list of include files.
*time_macros*::
Ignore `__DATE__` and `__TIME__` being present in the source code.
--
path derived from the local project path. Note that the index store won't be
updated correctly on cache hits if you enable this option.
+- Rename sloppiness `no_system_headers` to `system_headers` for consistency
+ with other options. `no_system_headers` can still be used as an
+ (undocumented) alias.
+
ccache 3.5.1
------------
goto out;
}
- if (system && (conf->sloppiness & SLOPPY_NO_SYSTEM_HEADERS)) {
+ if (system && (conf->sloppiness & SLOPPY_SYSTEM_HEADERS)) {
// Don't remember this system header.
goto out;
}
#define SLOPPY_FILE_STAT_MATCHES (1U << 5)
// Allow us to not include any system headers in the manifest include files,
// similar to -MM versus -M for dependencies.
-#define SLOPPY_NO_SYSTEM_HEADERS (1U << 6)
+#define SLOPPY_SYSTEM_HEADERS (1U << 6)
// Allow us to ignore ctimes when comparing file stats, so we can fake mtimes
// if we want to (it is much harder to fake ctimes, requires changing clock)
#define SLOPPY_FILE_STAT_MATCHES_CTIME (1U << 7)
*value |= SLOPPY_INCLUDE_FILE_CTIME;
} else if (str_eq(word, "include_file_mtime")) {
*value |= SLOPPY_INCLUDE_FILE_MTIME;
- } else if (str_eq(word, "no_system_headers")) {
- *value |= SLOPPY_NO_SYSTEM_HEADERS;
+ } else if (str_eq(word, "system_headers")
+ || str_eq(word, "no_system_headers")) {
+ *value |= SLOPPY_SYSTEM_HEADERS;
} else if (str_eq(word, "pch_defines")) {
*value |= SLOPPY_PCH_DEFINES;
} else if (str_eq(word, "time_macros")) {
if (*sloppiness & SLOPPY_FILE_STAT_MATCHES_CTIME) {
reformat(&s, "%sfile_stat_matches_ctime, ", s);
}
- if (*sloppiness & SLOPPY_NO_SYSTEM_HEADERS) {
- reformat(&s, "%sno_system_headers, ", s);
+ if (*sloppiness & SLOPPY_SYSTEM_HEADERS) {
+ reformat(&s, "%ssystem_headers, ", s);
}
if (*sloppiness & SLOPPY_CLANG_INDEX_STORE) {
reformat(&s, "%sclang_index_store, ", s);
"read_only_direct = true\n"
"recache = true\n"
"run_second_cpp = false\n"
- "sloppiness = file_macro ,time_macros, include_file_mtime,include_file_ctime,file_stat_matches,file_stat_matches_ctime,pch_defines , no_system_headers,clang_index_store,locale\n"
+ "sloppiness = file_macro ,time_macros, include_file_mtime,include_file_ctime,file_stat_matches,file_stat_matches_ctime,pch_defines , no_system_headers,system_headers,clang_index_store\n"
"stats = false\n"
"temporary_dir = ${USER}_foo\n"
"umask = 777\n"
|SLOPPY_TIME_MACROS
|SLOPPY_FILE_STAT_MATCHES
|SLOPPY_FILE_STAT_MATCHES_CTIME
- |SLOPPY_NO_SYSTEM_HEADERS
+ |SLOPPY_SYSTEM_HEADERS
|SLOPPY_PCH_DEFINES
- |SLOPPY_CLANG_INDEX_STORE
- |SLOPPY_LOCALE,
+ |SLOPPY_CLANG_INDEX_STORE,
conf->sloppiness);
CHECK(!conf->stats);
CHECK_STR_EQ_FREE1(format("%s_foo", user), conf->temporary_dir);
true,
true,
.run_second_cpp = false,
- SLOPPY_FILE_MACRO
- |SLOPPY_INCLUDE_FILE_MTIME
- |SLOPPY_INCLUDE_FILE_CTIME
- |SLOPPY_TIME_MACROS
- |SLOPPY_FILE_STAT_MATCHES
- |SLOPPY_FILE_STAT_MATCHES_CTIME
- |SLOPPY_PCH_DEFINES
- |SLOPPY_NO_SYSTEM_HEADERS
- |SLOPPY_CLANG_INDEX_STORE
- |SLOPPY_LOCALE,
+ SLOPPY_FILE_MACRO|SLOPPY_INCLUDE_FILE_MTIME|
+ SLOPPY_INCLUDE_FILE_CTIME|SLOPPY_TIME_MACROS|
+ SLOPPY_FILE_STAT_MATCHES|SLOPPY_FILE_STAT_MATCHES_CTIME|
+ SLOPPY_PCH_DEFINES|SLOPPY_SYSTEM_HEADERS|SLOPPY_CLANG_INDEX_STORE,
false,
"td",
022,
CHECK_STR_EQ("run_second_cpp = false", received_conf_items[n++].descr);
CHECK_STR_EQ("sloppiness = file_macro, include_file_mtime,"
" include_file_ctime, time_macros, pch_defines,"
- " file_stat_matches, file_stat_matches_ctime, no_system_headers, clang_index_store, locale",
+ " file_stat_matches, file_stat_matches_ctime, system_headers,"
+ " clang_index_store",
received_conf_items[n++].descr);
CHECK_STR_EQ("stats = false", received_conf_items[n++].descr);
CHECK_STR_EQ("temporary_dir = td", received_conf_items[n++].descr);