@@ -31,7 +31,6 @@ load(":derived_files.bzl", "derived_files")
31
31
load (
32
32
":feature_names.bzl" ,
33
33
"SWIFT_FEATURE_CACHEABLE_SWIFTMODULES" ,
34
- "SWIFT_FEATURE_COMPILE_STATS" ,
35
34
"SWIFT_FEATURE_COVERAGE" ,
36
35
"SWIFT_FEATURE_DBG" ,
37
36
"SWIFT_FEATURE_DEBUG_PREFIX_MAP" ,
@@ -177,14 +176,6 @@ def compile_action_configs(
177
176
actions = [swift_action_names .COMPILE ],
178
177
configurators = [_emit_objc_header_path_configurator ],
179
178
),
180
-
181
- # Configure the location where compiler performance statistics are
182
- # dumped.
183
- swift_toolchain_config .action_config (
184
- actions = [swift_action_names .COMPILE ],
185
- configurators = [_stats_output_dir_configurator ],
186
- features = [SWIFT_FEATURE_COMPILE_STATS ],
187
- ),
188
179
]
189
180
190
181
#### Compilation-mode-related flags
@@ -1062,10 +1053,6 @@ def _module_name_configurator(prerequisites, args):
1062
1053
"""Adds the module name flag to the command line."""
1063
1054
args .add ("-module-name" , prerequisites .module_name )
1064
1055
1065
- def _stats_output_dir_configurator (prerequisites , args ):
1066
- """Adds the compile stats output directory path to the command line."""
1067
- args .add ("-stats-output-dir" , prerequisites .stats_directory .path )
1068
-
1069
1056
def _source_files_configurator (prerequisites , args ):
1070
1057
"""Adds source files to the command line and required inputs."""
1071
1058
args .add_all (prerequisites .source_files )
@@ -1303,9 +1290,6 @@ def compile(
1303
1290
* `precompiled_module`: A `File` representing the explicit module
1304
1291
(`.pcm`) of the Clang module for the generated header, or `None` if
1305
1292
no explicit module was generated.
1306
- * `stats_directory`: A `File` representing the directory that contains
1307
- the timing statistics emitted by the compiler. If no stats were
1308
- requested, this field will be None.
1309
1293
* `swiftdoc`: The `.swiftdoc` file that was produced by the compiler.
1310
1294
* `swiftinterface`: The `.swiftinterface` file that was produced by
1311
1295
the compiler. If no interface file was produced (because the
@@ -1337,7 +1321,6 @@ def compile(
1337
1321
compile_outputs .swiftinterface_file ,
1338
1322
compile_outputs .generated_header_file ,
1339
1323
compile_outputs .indexstore_directory ,
1340
- compile_outputs .stats_directory ,
1341
1324
]) + compile_outputs .object_files + other_outputs
1342
1325
1343
1326
# Merge the providers from our dependencies so that we have one each for
@@ -1479,7 +1462,6 @@ def compile(
1479
1462
post_compile_results .additional_object_files
1480
1463
),
1481
1464
precompiled_module = precompiled_module ,
1482
- stats_directory = compile_outputs .stats_directory ,
1483
1465
swiftdoc = compile_outputs .swiftdoc_file ,
1484
1466
swiftinterface = compile_outputs .swiftinterface_file ,
1485
1467
swiftmodule = compile_outputs .swiftmodule_file ,
@@ -1669,17 +1651,6 @@ def _declare_compile_outputs(
1669
1651
else :
1670
1652
swiftinterface_file = None
1671
1653
1672
- if is_feature_enabled (
1673
- feature_configuration = feature_configuration ,
1674
- feature_name = SWIFT_FEATURE_COMPILE_STATS ,
1675
- ):
1676
- stats_directory = derived_files .stats_directory (
1677
- actions = actions ,
1678
- target_name = target_name ,
1679
- )
1680
- else :
1681
- stats_directory = None
1682
-
1683
1654
# If requested, generate the Swift header for this library so that it can be
1684
1655
# included by Objective-C code that depends on it.
1685
1656
if generated_header_name :
@@ -1781,7 +1752,6 @@ def _declare_compile_outputs(
1781
1752
indexstore_directory = indexstore_directory ,
1782
1753
object_files = object_files ,
1783
1754
output_file_map = output_file_map ,
1784
- stats_directory = stats_directory ,
1785
1755
swiftdoc_file = swiftdoc_file ,
1786
1756
swiftinterface_file = swiftinterface_file ,
1787
1757
swiftmodule_file = swiftmodule_file ,
@@ -2147,11 +2117,6 @@ def output_groups_from_compilation_outputs(compilation_outputs):
2147
2117
compilation_outputs .indexstore ,
2148
2118
])
2149
2119
2150
- if compilation_outputs .stats_directory :
2151
- output_groups ["swift_compile_stats_direct" ] = depset ([
2152
- compilation_outputs .stats_directory ,
2153
- ])
2154
-
2155
2120
if compilation_outputs .swiftinterface :
2156
2121
output_groups ["swiftinterface" ] = depset ([
2157
2122
compilation_outputs .swiftinterface ,
0 commit comments