|
29 | 29 | "SWIFT_FEATURE_DEBUG_PREFIX_MAP",
|
30 | 30 | "SWIFT_FEATURE_ENABLE_BATCH_MODE",
|
31 | 31 | "SWIFT_FEATURE_ENABLE_SKIP_FUNCTION_BODIES",
|
| 32 | + "SWIFT_FEATURE_ENABLE_SKIP_FUNCTION_BODIES_WITHOUT_TYPES", |
32 | 33 | "SWIFT_FEATURE_MODULE_MAP_NO_PRIVATE_HEADERS",
|
33 | 34 | "SWIFT_FEATURE_SUPPORTS_PRIVATE_DEPS",
|
34 | 35 | "SWIFT_FEATURE_USE_RESPONSE_FILES",
|
@@ -84,6 +85,15 @@ def _check_skip_function_bodies(repository_ctx, swiftc_path, temp_dir):
|
84 | 85 | "-experimental-skip-non-inlinable-function-bodies",
|
85 | 86 | )
|
86 | 87 |
|
| 88 | +def _check_skip_function_bodies_without_types(repository_ctx, swiftc_path, temp_dir): |
| 89 | + """Returns True if `swiftc` supports skip function bodies.""" |
| 90 | + return _swift_succeeds( |
| 91 | + repository_ctx, |
| 92 | + swiftc_path, |
| 93 | + "-version", |
| 94 | + "-experimental-skip-non-inlinable-function-bodies-without-types", |
| 95 | + ) |
| 96 | + |
87 | 97 | def _check_debug_prefix_map(repository_ctx, swiftc_path, temp_dir):
|
88 | 98 | """Returns True if `swiftc` supports debug prefix mapping."""
|
89 | 99 | return _swift_succeeds(
|
@@ -197,6 +207,7 @@ _FEATURE_CHECKS = {
|
197 | 207 | SWIFT_FEATURE_DEBUG_PREFIX_MAP: _check_debug_prefix_map,
|
198 | 208 | SWIFT_FEATURE_ENABLE_BATCH_MODE: _check_enable_batch_mode,
|
199 | 209 | SWIFT_FEATURE_ENABLE_SKIP_FUNCTION_BODIES: _check_skip_function_bodies,
|
| 210 | + SWIFT_FEATURE_ENABLE_SKIP_FUNCTION_BODIES_WITHOUT_TYPES: _check_skip_function_bodies_without_types, |
200 | 211 | SWIFT_FEATURE_SUPPORTS_PRIVATE_DEPS: _check_supports_private_deps,
|
201 | 212 | SWIFT_FEATURE_USE_RESPONSE_FILES: _check_use_response_files,
|
202 | 213 | }
|
|
0 commit comments