summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ccache.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ccache.cpp b/src/ccache.cpp
index 9bc5c5f2..20ce2e2a 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:
+ // <https://www.intel.com/content/www/us/en/develop/documentation/
+ // mpi-developer-reference-windows/top/environment-variable-reference/
+ // compilation-environment-variables.html>
+ "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: