Skip to content

Commit 6e97881

Browse files
authored
Fix a new bug in GNU Make (#2447)
CXX should not be set to mpiicpc if it's not an MPI build. This is a new bug introduced by me in #2435.
1 parent 210cb0e commit 6e97881

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tools/GNUMake/sites/Make.unknown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
os_type := $(shell uname)
66

7+
ifeq ($(USE_MPI),TRUE)
78
ifeq ($(USE_DPCPP),TRUE)
89
ifeq ($(shell mpiicpc -show > /dev/null 2>&1; echo $$?), 0)
910
CC := mpiicc
@@ -14,6 +15,7 @@ ifeq ($(USE_DPCPP),TRUE)
1415
NO_MPI_CHECKING = TRUE
1516
endif
1617
endif
18+
endif
1719

1820
ifneq ($(NO_CONFIG_CHECKING),TRUE)
1921

0 commit comments

Comments
 (0)