Skip to content

Commit

Permalink
cpp is a preprocessor, don't try to compile with it
Browse files Browse the repository at this point in the history
It dpesn't support multiple input files, leading to an error:
`
cpp: fatal error: too many input files

Fixes /issues/323
Fixes boostorg/build/issues/613
Fixes boostorg/build/issues/614
  • Loading branch information
Kojoley committed May 3, 2024
1 parent bed068a commit df62274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit df62274

Please sign in to comment.