mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 00:52:16 +00:00
Add default value for cxx and cxxflags options for the cxx toolset (#24)
Add default value for cxx and cxxflags options for the cxx toolset
This commit is contained in:
@@ -276,12 +276,19 @@ if test_true ${B2_HELP_OPT} ; then
|
||||
error_exit
|
||||
fi
|
||||
|
||||
# If we have a CXX but no B2_TOLSET specified by the user we assume they meant
|
||||
# If we have a CXX but no B2_TOOLSET specified by the user we assume they meant
|
||||
# "cxx" as the toolset.
|
||||
if test "${B2_CXX_OPT}" != "" -a "${B2_TOOLSET}" = "" ; then
|
||||
B2_TOOLSET=cxx
|
||||
fi
|
||||
|
||||
# If we have B2_TOOLSET=cxx but no B2_CXX_OPT nor B2_CXXFLAGS_OPT specified by the user
|
||||
# we assume they meant $CXX and $CXXFLAGS.
|
||||
if test "${B2_TOOLSET}" = "cxx" -a "${B2_CXX_OPT}" = "" -a "${B2_CXXFLAGS_OPT}" = "" ; then
|
||||
B2_CXX_OPT="${CXX}"
|
||||
B2_CXXFLAGS_OPT="${CXXFLAGS}"
|
||||
fi
|
||||
|
||||
# Guess toolset, or toolset commands.
|
||||
check_toolset
|
||||
TOOLSET_CHECK=$?
|
||||
|
||||
Reference in New Issue
Block a user