Skip to content

Commit 3d6883d

Browse files
committed
Converted Clang and Swift compiler options to legacy copiler version type for the time being.
1 parent 5fb944c commit 3d6883d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/build_swift/driver_arguments.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
# TODO: Replace with implementation in build_swift package
1515
from swift_build_support.swift_build_support import host
16+
from swift_build_support.swift_build_support import arguments
1617
from swift_build_support.swift_build_support.targets import \
1718
StdlibDeploymentTarget
1819

1920
from . import defaults
2021
from .argparse_builder import ArgumentParserBuilder
21-
from .argument_types import ClangVersionType, SwiftVersionType
2222

2323

2424
__all__ = [
@@ -129,24 +129,24 @@ def create_argument_parser():
129129
help='compiler vendor name')
130130

131131
option('--clang-compiler-version', set_,
132-
type=ClangVersionType(),
132+
type=arguments.type.clang_compiler_version,
133133
metavar='VERSION',
134134
help='Clang compiler version')
135135

136136
option('--clang-user-visible-version', set_,
137-
type=ClangVersionType(),
137+
type=arguments.type.clang_compiler_version,
138138
default=defaults.CLANG_USER_VISIBLE_VERSION,
139139
metavar='VERSION',
140140
help='user-visible version of the embedded Clang and LLVM '
141141
'compilers')
142142

143143
option('--swift-compiler-version', set_,
144-
type=SwiftVersionType(),
144+
type=arguments.type.swift_compiler_version,
145145
metavar='VERSION',
146146
help='Swift compiler version')
147147

148148
option('--swift-user-visible-version', set_,
149-
type=SwiftVersionType(),
149+
type=arguments.type.swift_compiler_version,
150150
default=defaults.SWIFT_USER_VISIBLE_VERSION,
151151
metavar='VERSION',
152152
help='user-visible version of the embedded Swift compiler')

0 commit comments

Comments
 (0)