From d9df8ed18a63df3755c36e93fb6a89fe8b620b58 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sat, 5 Nov 2022 13:03:22 +0100 Subject: [PATCH] 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. --- src/ccache.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.47.2