Skip to content

Commit

Permalink
DAOS-623 build: Force recompilation of MPI when mpicc changes (#4274)
Browse files Browse the repository at this point in the history
This adds a definition on the command line that will cause scons to
recompile any code that was previously compiled with a different
mpicc so that one can change the mpi used without more drastic
clean of all daos binaries.

Signed-off-by: Jeff Olivier <[email protected]>
  • Loading branch information
jolivier23 authored Jan 19, 2021
1 parent e506bd8 commit a5b0433
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/daos_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def _find_mpicc(env):
if mpicc:
env.Replace(CC="mpicc")
env.Replace(LINK="mpicc")
env.AppendUnique(CPPDEFINES=["-DDAOS_MPI_PATH=\"%s\"" % mpicc])
clear_icc_env(env)
load_mpi_path(env)
return True
Expand Down

0 comments on commit a5b0433

Please sign in to comment.