diff options
Diffstat (limited to '')
-rw-r--r-- | boost/build/ci/appveyor.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/boost/build/ci/appveyor.py b/boost/build/ci/appveyor.py index 7bc009a..4a55e20 100644 --- a/boost/build/ci/appveyor.py +++ b/boost/build/ci/appveyor.py @@ -12,12 +12,13 @@ the AppVeyor-defined environment variables. This script is rarely usefull, since AppVeyor images come with lots of pre-built Boost distributions, but still. -Boost is built in C:\. +Boost is built in C:\projects\boost. ''' import argparse import logging import os +import os.path import sys @@ -33,7 +34,11 @@ def _check_appveyor(): def _get_build_dir(): - return 'C:\\' + return 'C:\\projects' + + +def _get_boost_dir(): + return os.path.join(_get_build_dir(), 'boost') def _get_boost_version(): @@ -88,6 +93,10 @@ def build_appveyor(argv=None): ] build_main(appveyor_argv) + unpacked_boost_dir = version.dir_path(_get_build_dir()) + boost_dir = _get_boost_dir() + os.rename(unpacked_boost_dir, boost_dir) + appveyor_argv = [ 'build', '--configuration', _get_configuration(), @@ -98,9 +107,7 @@ def build_appveyor(argv=None): appveyor_argv += args.link if args.runtime_link is not None: appveyor_argv += ['--runtime-link', args.runtime_link] - appveyor_argv += [ - '--', version.dir_path(_get_build_dir()), - ] + appveyor_argv += ['--', boost_dir] build_main(appveyor_argv + args.b2_args) |