|
13 | 13 |
|
14 | 14 | # TODO: Replace with implementation in build_swift package
|
15 | 15 | from swift_build_support.swift_build_support import host
|
| 16 | +from swift_build_support.swift_build_support import arguments |
16 | 17 | from swift_build_support.swift_build_support.targets import \
|
17 | 18 | StdlibDeploymentTarget
|
18 | 19 |
|
19 | 20 | from . import defaults
|
20 | 21 | from .argparse_builder import ArgumentParserBuilder
|
21 |
| -from .argument_types import ClangVersionType, SwiftVersionType |
22 | 22 |
|
23 | 23 |
|
24 | 24 | __all__ = [
|
@@ -129,24 +129,24 @@ def create_argument_parser():
|
129 | 129 | help='compiler vendor name')
|
130 | 130 |
|
131 | 131 | option('--clang-compiler-version', set_,
|
132 |
| - type=ClangVersionType(), |
| 132 | + type=arguments.type.clang_compiler_version, |
133 | 133 | metavar='VERSION',
|
134 | 134 | help='Clang compiler version')
|
135 | 135 |
|
136 | 136 | option('--clang-user-visible-version', set_,
|
137 |
| - type=ClangVersionType(), |
| 137 | + type=arguments.type.clang_compiler_version, |
138 | 138 | default=defaults.CLANG_USER_VISIBLE_VERSION,
|
139 | 139 | metavar='VERSION',
|
140 | 140 | help='user-visible version of the embedded Clang and LLVM '
|
141 | 141 | 'compilers')
|
142 | 142 |
|
143 | 143 | option('--swift-compiler-version', set_,
|
144 |
| - type=SwiftVersionType(), |
| 144 | + type=arguments.type.swift_compiler_version, |
145 | 145 | metavar='VERSION',
|
146 | 146 | help='Swift compiler version')
|
147 | 147 |
|
148 | 148 | option('--swift-user-visible-version', set_,
|
149 |
| - type=SwiftVersionType(), |
| 149 | + type=arguments.type.swift_compiler_version, |
150 | 150 | default=defaults.SWIFT_USER_VISIBLE_VERSION,
|
151 | 151 | metavar='VERSION',
|
152 | 152 | help='user-visible version of the embedded Swift compiler')
|
|
0 commit comments