diff --git a/src/engine/build.sh b/src/engine/build.sh index 912c9478d5..c2a6640af1 100755 --- a/src/engine/build.sh +++ b/src/engine/build.sh @@ -251,7 +251,7 @@ check_toolset () if test_toolset sunpro && test_compiler /opt/SUNWspro/bin/CC -std=c++11 ; then B2_TOOLSET=sunpro ; return ${TRUE} ; fi # Generic (cxx) if test_toolset cxx && test_compiler cxx ; then B2_TOOLSET=cxx ; return ${TRUE} ; fi - if test_toolset cxx && test_compiler cpp ; then B2_TOOLSET=cxx ; return ${TRUE} ; fi + if test_toolset cxx && test_compiler c++ ; then B2_TOOLSET=cxx ; return ${TRUE} ; fi if test_toolset cxx && test_compiler CC ; then B2_TOOLSET=cxx ; return ${TRUE} ; fi # Nothing found.