From: Joel Rosdahl Date: Sat, 5 Nov 2022 12:03:22 +0000 (+0100) Subject: feat: Include I_MPI_CC/I_MPI_CXX in the input hash X-Git-Tag: v4.7.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9df8ed18a63df3755c36e93fb6a89fe8b620b58;p=thirdparty%2Fccache.git feat: Include I_MPI_CC/I_MPI_CXX in the input hash The I_MPI_CC and I_MPI_CXX variables affect which underlying compiler ICC uses. Reference: . Closes #1210. --- diff --git a/src/ccache.cpp b/src/ccache.cpp index 9bc5c5f2b..20ce2e2a7 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -1381,6 +1381,12 @@ hash_common_info(const Context& ctx, "COMPILER_PATH", "GCC_COMPARE_DEBUG", "GCC_EXEC_PREFIX", + // Variables that affect which underlying compiler ICC uses. Reference: + // + "I_MPI_CC", + "I_MPI_CXX", #ifdef __APPLE__ // On macOS, /usr/bin/clang is a compiler wrapper that switches compiler // based on at least these variables: