Skip to content

Commit c30ca69

Browse files
committed
Remove lit --param bootstrapping_mode
1 parent 355d162 commit c30ca69

9 files changed

+16
-21
lines changed

test/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,6 @@ if(NOT CMAKE_CFG_INTDIR STREQUAL ".")
175175
"--param" "build_mode=${CMAKE_CFG_INTDIR}")
176176
endif()
177177

178-
if (BOOTSTRAPPING_MODE)
179-
list(APPEND SWIFT_LIT_ARGS
180-
"--param" "bootstrapping_mode=${BOOTSTRAPPING_MODE}")
181-
endif()
182-
183178
if (LLVM_USE_SANITIZER STREQUAL "Address")
184179
set(SWIFT_ASAN_BUILD TRUE)
185180
endif()

test/Driver/driver-compile.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565

6666
// swift-frontend cannot be copied to another location with bootstrapping because
6767
// it will not find the libswiftCore library with its relative RPATH.
68-
// UNSUPPORTED: bootstrapping_mode
68+
// UNSUPPORTED: swift_in_compiler
6969

7070
// CHECK: bin{{/|\\\\}}swift
7171
// CHECK: Driver{{/|\\\\}}driver-compile.swift

test/Driver/linker-clang_rt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
// swift-frontend cannot be copied to another location with bootstrapping because
4141
// it will not find the libswiftCore library with its relative RPATH.
42-
// UNSUPPORTED: bootstrapping_mode
42+
// UNSUPPORTED: swift_in_compiler
4343

4444
// CHECK: {{(bin/)?}}ld{{(.exe)?"? }}
4545
// CHECK-NO-RUNTIME-NOT: libclang_rt

test/Driver/options-repl-darwin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
// swift-frontend cannot be copied to another location with bootstrapping because
2626
// it will not find the libswiftCore library with its relative RPATH.
27-
// UNSUPPORTED: bootstrapping_mode
27+
// UNSUPPORTED: swift_in_compiler
2828

2929
// CHECK-SWIFT-INVOKES-INTERPRETER: {{.*}}/swift-frontend -frontend -interpret
3030

test/Driver/options-repl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// swift-frontend cannot be copied to another location with bootstrapping because
2222
// it will not find the libswiftCore library with its relative RPATH.
23-
// UNSUPPORTED: bootstrapping_mode
23+
// UNSUPPORTED: swift_in_compiler
2424

2525
// LLDB: lldb{{(\.exe)?"?}} {{"?}}--repl=
2626
// LLDB-NOT: -module-name

test/Driver/subcommands.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
// swift-frontend cannot be copied to another location with bootstrapping because
2424
// it will not find the libswiftCore library with its relative RPATH.
25-
// UNSUPPORTED: bootstrapping_mode
25+
// UNSUPPORTED: swift_in_compiler
2626

2727
// CHECK-SWIFT-INVOKES-INTERPRETER: {{.*}}/swift-frontend -frontend -interpret
2828

test/Driver/windows-link-job.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
// swift-frontend cannot be copied to another location with bootstrapping because
66
// it will not find the libswiftCore library with its relative RPATH.
7-
// UNSUPPORTED: bootstrapping_mode
7+
// UNSUPPORTED: swift_in_compiler
88

99
// CHECK: {{^}}clang

test/lit.cfg

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,6 @@ array_cow_checks = lit_config.params.get('array_cow_checks')
267267
if array_cow_checks is not None:
268268
config.available_features.add('array_cow_checks')
269269

270-
bootstrapping_mode = lit_config.params.get('bootstrapping_mode')
271-
if bootstrapping_mode is not None:
272-
config.available_features.add('swift_in_compiler')
273-
if bootstrapping_mode == 'HOSTTOOLS':
274-
config.available_features.add('hosttools_mode')
275-
elif bootstrapping_mode == 'BOOTSTRAPPING':
276-
config.available_features.add('bootstrapping_mode')
277-
elif bootstrapping_mode == 'BOOTSTRAPPING-WITH-HOSTLIBS':
278-
config.available_features.add('bootstrapping_with_hostlibs_mode')
279-
280270
###
281271

282272
# Discover the Swift binaries to use.

test/lit.site.cfg.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@ config.swift_stdlib_enable_objc_interop = "@SWIFT_STDLIB_ENABLE_OBJC_INTEROP@" =
149149
# Configured in DarwinSDKs.cmake
150150
config.freestanding_sdk_name = "@SWIFT_SDK_FREESTANDING_LIB_SUBDIR@"
151151

152+
if "@BOOTSTRAPPING_MODE@" != "OFF":
153+
config.available_features.add('swift_in_compiler')
154+
155+
if "@BOOTSTRAPPING_MODE@" == 'HOSTTOOLS':
156+
config.available_features.add('hosttools_mode')
157+
elif "@BOOTSTRAPPING_MODE@" == 'BOOTSTRAPPING':
158+
config.available_features.add('bootstrapping_mode')
159+
elif "@BOOTSTRAPPING_MODE@" == 'BOOTSTRAPPING-WITH-HOSTLIBS':
160+
config.available_features.add('bootstrapping_with_hostlibs_mode')
161+
152162
# Let the main config do the real work.
153163
if config.test_exec_root is None:
154164
config.test_exec_root = os.path.dirname(os.path.realpath(__file__))

0 commit comments

Comments
 (0)