From 4e2ad2c01f669a7a18f332d2ea59258b9ccc25da Mon Sep 17 00:00:00 2001 From: Nikita Kniazev Date: Thu, 9 May 2024 14:56:13 +0300 Subject: [PATCH] cpp is a preprocessor, don't try to compile with it (#383) It dpesn't support multiple input files, leading to an error: ` cpp: fatal error: too many input files Fixes bfgroup/b2/issues/323 Fixes boostorg/build/issues/613 Fixes boostorg/build/issues/614 --- src/engine/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.