aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost/build.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-07 23:56:11 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-08 00:02:06 +0300
commitdea91729b6ec00c53d015d7df589f2df3176b7b8 (patch)
treedd825359e62d4e2f29676627f3dc46281ae563d2 /project/boost/build.py
parentproject.toolset: move _full_exe_name to utils (diff)
downloadcmake-common-dea91729b6ec00c53d015d7df589f2df3176b7b8.tar.gz
cmake-common-dea91729b6ec00c53d015d7df589f2df3176b7b8.zip
add --help-toolsets parameter
Also, get rid of mentions of Visual Studio versions lower than 2010.
Diffstat (limited to '')
-rw-r--r--project/boost/build.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/project/boost/build.py b/project/boost/build.py
index cb3688c..a192585 100644
--- a/project/boost/build.py
+++ b/project/boost/build.py
@@ -80,7 +80,9 @@ class BuildParameters:
@staticmethod
def from_cmd_args(args):
- return BuildParameters(**vars(args))
+ args = vars(args)
+ args.pop('help_toolsets', None)
+ return BuildParameters(**args)
def enum_b2_args(self):
with self._create_build_dir() as build_dir:
@@ -140,6 +142,10 @@ def _parse_args(argv=None):
if argv is None:
argv = sys.argv[1:]
+ if '--help-toolsets' in argv:
+ sys.stdout.write(ToolsetVersion.help_toolsets())
+ sys.exit(0)
+
parser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter)
@@ -171,6 +177,8 @@ def _parse_args(argv=None):
parser.add_argument('--toolset', metavar='TOOLSET', dest='toolset_version',
type=ToolsetVersion.parse, default=DEFAULT_TOOLSET_VERSION,
help=f'toolset to use ({ToolsetVersion.usage()})')
+ parser.add_argument('--help-toolsets', action='store_true',
+ help='show detailed info about supported toolsets')
parser.add_argument('--build', metavar='DIR', dest='build_dir',
type=normalize_path,