Skip to content

Commit cffc155

Browse files
committed
tests: fix "which: invalid option" noise in user-env-oom summary
Same fix as commit 69c3e8b for hdf5/phdf5, where AC_PROG_CXX embeds "-std=gnu++11" directly into $CXX and the configure summary's "`which $CXX`" then prints one "invalid option" line per character. This summary only runs which on $CC, which autoconf does not pad with flags today, but guard it the same way for consistency and in case it ever picks up embedded flags too. Use "${CC%% *}" to strip everything after the first space before handing it to which. Signed-off-by: Adrian Reber <adrian@lisas.de> (cherry picked from commit c01eaa9) Signed-off-by: Adrian Reber <adrian@lisas.de>
1 parent 05085be commit cffc155

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/user-env-oom/configure.ac‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ echo
3131
echo Package version............... : $PACKAGE-$VERSION
3232
echo OHPC compiler toolchain....... : $LMOD_FAMILY_COMPILER
3333
echo
34-
echo C compiler.................... : `which $CC`
34+
echo C compiler.................... : `which ${CC%% *}`
3535
echo C compiler flags.............. : $CFLAGS
3636
echo LDFLAGS linker flags.......... : $LDFLAGS
3737
echo

0 commit comments

Comments
 (0)