// clang will emit warnings for unused linker flags, so we shouldn't skip
// those arguments.
- int is_clang = guessed_compiler == GUESSED_CLANG;
+ int is_clang = (guessed_compiler == GUESSED_CLANG || guessed_compiler == GUESSED_UNKNOWN);
// First the arguments.
for (int i = 1; i < args->argc; i++) {
//
// file 'foo.h' has been modified since the precompiled header 'foo.pch'
// was built
- if (guessed_compiler == GUESSED_CLANG
+ if ((guessed_compiler == GUESSED_CLANG || guessed_compiler == GUESSED_UNKNOWN)
&& output_is_precompiled_header
&& mode == FROMCACHE_CPP_MODE) {
cc_log("Not considering cached precompiled header in preprocessor mode");
// Clang stores the mtime of the included files in the precompiled header,
// and will error out if that header is later used without rebuilding.
- if (guessed_compiler == GUESSED_CLANG
+ if ((guessed_compiler == GUESSED_CLANG || guessed_compiler == GUESSED_UNKNOWN)
&& output_is_precompiled_header
&& fi->mtime != st->mtime) {
cc_log("Precompiled header includes %s, which has a new mtime", path);