From ef04530c9862d3cb03fcb59e74a8cf551eb84a6a Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 30 Mar 2020 01:07:36 +0300 Subject: project.boost: support --mingw for Travis/AppVeyor --- project/boost/build.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'project/boost') diff --git a/project/boost/build.py b/project/boost/build.py index fdcf050..1e5018e 100644 --- a/project/boost/build.py +++ b/project/boost/build.py @@ -49,7 +49,7 @@ COMMON_B2_ARGS = ['-d0'] class BuildParameters: def __init__(self, boost_dir, build_dir=None, platforms=None, configurations=None, link=None, runtime_link=None, - b2_args=None, mingw=False): + mingw=False, b2_args=None): boost_dir = project.utils.normalize_path(boost_dir) if build_dir is not None: @@ -64,14 +64,14 @@ class BuildParameters: b2_args = COMMON_B2_ARGS self.boost_dir = boost_dir - self.stage_dir = 'stage' self.build_dir = build_dir + self.stage_dir = 'stage' self.platforms = platforms self.configurations = configurations self.link = link self.runtime_link = runtime_link - self.b2_args = b2_args self.mingw = mingw + self.b2_args = b2_args @staticmethod def from_args(args): @@ -192,6 +192,9 @@ def _parse_args(argv=None): type=Linkage.parse, default=DEFAULT_RUNTIME_LINK, help=f'how the libraries link to the runtime ({linkage_options})') + parser.add_argument('--mingw', action='store_true', + help='build using MinGW-w64') + parser.add_argument('--build', metavar='DIR', dest='build_dir', type=project.utils.normalize_path, help='Boost build directory (temporary directory unless specified)') @@ -203,9 +206,6 @@ def _parse_args(argv=None): nargs='*', default=[], help='additional b2 arguments, to be passed verbatim') - parser.add_argument('--mingw', action='store_true', - help='build using MinGW-w64') - return parser.parse_args(argv) -- cgit v1.2.3