Skip to content

Commit c3fa62a

Browse files
committed
Do not use full path for wrapper C compiler
Fix an assymetry in the wrapper compilers, where the C compiler was always specified as a full path (regardless of the value of $CC), while C++ and Fortran compilers were always invoked based on the value of $CXX and $FC. In the case where the user directly sets $CC before invoking configure, this will result in the C compiler invoked by the wrapper compiler exactly matching $CC. Signed-off-by: Brian Barrett <bbarrett@amazon.com>
1 parent d4077a4 commit c3fa62a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/opal_setup_wrappers.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ AC_DEFUN([OPAL_SETUP_WRAPPER_INIT],[
9494
# Get the full path to the wrapper compiler. If it doesn't exist
9595
# assume that the path is not currently valid.
9696
wrapper_tmp="$(type -p "$with_wrapper_cc")"
97-
WRAPPER_CC="${wrapper_tmp:-$with_wrapper_cc}"
9897
if test -z "$wrapper_tmp" ; then
9998
AC_MSG_WARN([could not find \"$with_wrapper_cc\" in path])
10099
fi
100+
WRAPPER_CC=$with_wrapper_cc
101101

102102
AC_MSG_RESULT([$WRAPPER_CC])
103103

0 commit comments

Comments
 (0)