Fixed overzealous path expansion for the --build-subdir argument which caused all build directories to generate relative to the directory build-script was invoked from. (#13319)

This commit is contained in:
Ross Bayer
2017-12-07 13:18:17 -08:00
committed by GitHub
parent e287c30797
commit 6d2c465071

View File

@@ -298,7 +298,8 @@ def create_argument_parser():
help='enable code coverage analysis in Swift (false, not-merged, '
'merged).')
option('--build-subdir', store_path,
option('--build-subdir', store,
metavar='PATH',
help='name of the directory under $SWIFT_BUILD_ROOT where the '
'build products will be placed')
option('--install-prefix', store_path,
@@ -315,7 +316,6 @@ def create_argument_parser():
option('--darwin-xcrun-toolchain', store,
default=defaults.DARWIN_XCRUN_TOOLCHAIN,
help='the name of the toolchain to use on Darwin')
# TODO: Add executable check to store_path
option('--cmake', store_path(executable=True),
help='the path to a CMake executable that will be used to build '
'Swift')