summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-11-05 13:03:22 +0100
committerJoel Rosdahl <joel@rosdahl.net>2022-11-05 13:19:19 +0100
commitd9df8ed18a63df3755c36e93fb6a89fe8b620b58 (patch)
treec172d69a5f90d82e76400526b6addb8c893acf2f
parentbf2c2cc69542be61e1d732db9dcec8a079fdfff8 (diff)
downloadccache-d9df8ed18a63df3755c36e93fb6a89fe8b620b58.tar.gz
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: <https://www.intel.com/content/www/us/en/develop/documentation/ mpi-developer-reference-windows/top/environment-variable-reference/ compilation-environment-variables.html>. Closes #1210.
-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: