File tree Expand file tree Collapse file tree 9 files changed +16
-21
lines changed Expand file tree Collapse file tree 9 files changed +16
-21
lines changed Original file line number Diff line number Diff line change @@ -175,11 +175,6 @@ if(NOT CMAKE_CFG_INTDIR STREQUAL ".")
175
175
"--param" "build_mode=${CMAKE_CFG_INTDIR} " )
176
176
endif ()
177
177
178
- if (BOOTSTRAPPING_MODE )
179
- list (APPEND SWIFT_LIT_ARGS
180
- "--param" "bootstrapping_mode=${BOOTSTRAPPING_MODE} " )
181
- endif ()
182
-
183
178
if (LLVM_USE_SANITIZER STREQUAL "Address" )
184
179
set (SWIFT_ASAN_BUILD TRUE )
185
180
endif ()
Original file line number Diff line number Diff line change 65
65
66
66
// swift-frontend cannot be copied to another location with bootstrapping because
67
67
// it will not find the libswiftCore library with its relative RPATH.
68
- // UNSUPPORTED: bootstrapping_mode
68
+ // UNSUPPORTED: swift_in_compiler
69
69
70
70
// CHECK: bin{{/|\\\\}}swift
71
71
// CHECK: Driver{{/|\\\\}}driver-compile.swift
Original file line number Diff line number Diff line change 39
39
40
40
// swift-frontend cannot be copied to another location with bootstrapping because
41
41
// it will not find the libswiftCore library with its relative RPATH.
42
- // UNSUPPORTED: bootstrapping_mode
42
+ // UNSUPPORTED: swift_in_compiler
43
43
44
44
// CHECK: {{(bin/)?}}ld{{(.exe)?"? }}
45
45
// CHECK-NO-RUNTIME-NOT: libclang_rt
Original file line number Diff line number Diff line change 24
24
25
25
// swift-frontend cannot be copied to another location with bootstrapping because
26
26
// it will not find the libswiftCore library with its relative RPATH.
27
- // UNSUPPORTED: bootstrapping_mode
27
+ // UNSUPPORTED: swift_in_compiler
28
28
29
29
// CHECK-SWIFT-INVOKES-INTERPRETER: {{.*}}/swift-frontend -frontend -interpret
30
30
Original file line number Diff line number Diff line change 20
20
21
21
// swift-frontend cannot be copied to another location with bootstrapping because
22
22
// it will not find the libswiftCore library with its relative RPATH.
23
- // UNSUPPORTED: bootstrapping_mode
23
+ // UNSUPPORTED: swift_in_compiler
24
24
25
25
// LLDB: lldb{{(\.exe)?"?}} {{"?}}--repl=
26
26
// LLDB-NOT: -module-name
Original file line number Diff line number Diff line change 22
22
23
23
// swift-frontend cannot be copied to another location with bootstrapping because
24
24
// it will not find the libswiftCore library with its relative RPATH.
25
- // UNSUPPORTED: bootstrapping_mode
25
+ // UNSUPPORTED: swift_in_compiler
26
26
27
27
// CHECK-SWIFT-INVOKES-INTERPRETER: {{.*}}/swift-frontend -frontend -interpret
28
28
Original file line number Diff line number Diff line change 4
4
5
5
// swift-frontend cannot be copied to another location with bootstrapping because
6
6
// it will not find the libswiftCore library with its relative RPATH.
7
- // UNSUPPORTED: bootstrapping_mode
7
+ // UNSUPPORTED: swift_in_compiler
8
8
9
9
// CHECK: {{^}}clang
Original file line number Diff line number Diff line change @@ -267,16 +267,6 @@ array_cow_checks = lit_config.params.get('array_cow_checks')
267
267
if array_cow_checks is not None :
268
268
config .available_features .add ('array_cow_checks' )
269
269
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
-
280
270
###
281
271
282
272
# Discover the Swift binaries to use.
Original file line number Diff line number Diff line change @@ -149,6 +149,16 @@ config.swift_stdlib_enable_objc_interop = "@SWIFT_STDLIB_ENABLE_OBJC_INTEROP@" =
149
149
# Configured in DarwinSDKs.cmake
150
150
config .freestanding_sdk_name = "@SWIFT_SDK_FREESTANDING_LIB_SUBDIR@"
151
151
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
+
152
162
# Let the main config do the real work.
153
163
if config .test_exec_root is None :
154
164
config .test_exec_root = os .path .dirname (os .path .realpath (__file__ ))
You can’t perform that action at this time.
0 commit comments