Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
cesar-douady committed Apr 5, 2024
1 parent 2c8ed64 commit 1155c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _bin/sys_config
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ fi
# CXX configuration
#
CXX=${CXX:-g++}
[ "$CXX" != "${CXX%++}" ] || { echo cannot recognize c++ compiler $CXX ; exit 1 ; }
type -p $CXX >/dev/null || { echo cannot find c++ compiler $CXX ; exit 1 ; }
[ "$CXX" != "${CXX%++*}" ] || { echo cannot recognize c++ compiler $CXX ; exit 1 ; } # ensure we can find "++" in cxx, for example gcc or clang will not work, we must use g++ and clang++
type -p $CXX >/dev/null || { echo cannot find c++ compiler $CXX ; exit 1 ; }

case "$($CXX --version|head -1)" in
*clang* ) CXX_FLAVOR=clang ; [ "$($CXX -dumpversion)" -lt 15 ] && { echo clang version must be at least 15 ; exit 1 ; } ;;
Expand Down

0 comments on commit 1155c87

Please sign in to comment.