@@ -83,7 +83,6 @@ _SANITIZER_FEATURE_FLAG_MAP = {
8383}
8484
8585def _build_swift_info (
86- compile_options = [],
8786 deps = [],
8887 direct_additional_inputs = [],
8988 direct_defines = [],
@@ -100,8 +99,6 @@ def _build_swift_info(
10099 also automatically collects transitive values from dependencies.
101100
102101 Args:
103- compile_options: A list of `Args` objects that contain the compilation options passed to
104- `swiftc` to compile this target.
105102 deps: A list of dependencies of the target being built, which provide `SwiftInfo` providers.
106103 direct_additional_inputs: A list of additional input files passed into a library or binary
107104 target via the `swiftc_inputs` attribute.
@@ -150,7 +147,6 @@ def _build_swift_info(
150147 )
151148
152149 return SwiftInfo (
153- compile_options = compile_options ,
154150 direct_defines = direct_defines ,
155151 direct_libraries = direct_libraries ,
156152 direct_linkopts = direct_linkopts ,
@@ -500,9 +496,6 @@ def _compile_as_objects(
500496 * `compile_inputs`: A `depset` of `File`s representing the full collection
501497 of files that were used as inputs to the compile action. This can be used
502498 if those files need to also be made available to subsequent link actions.
503- * `compile_options`: A list of `Args` objects containing the complete set
504- of command line flags that were passed to the compiler. This is mainly
505- exposed for aspects to inspect so that IDEs can integrate with SourceKit.
506499 * `linker_flags`: A list of strings representing additional flags that
507500 should be passed to the linker when linking these objects into a binary.
508501 * `linker_inputs`: A list of `File`s representing additional input files
@@ -642,7 +635,6 @@ def _compile_as_objects(
642635
643636 return struct (
644637 compile_inputs = all_inputs ,
645- compile_options = ([compile_args ] + arguments ),
646638 linker_flags = linker_flags ,
647639 linker_inputs = linker_inputs ,
648640 output_doc = out_doc ,
@@ -720,9 +712,6 @@ def _compile_as_library(
720712 * `compile_inputs`: A `depset` of `File`s representing the full collection
721713 of files that were used as inputs to the compile action. This can be used
722714 if those files need to also be made available to subsequent link actions.
723- * `compile_options`: A list of `Args` objects containing the complete set
724- of command line flags that were passed to the compiler. This is mainly
725- exposed for aspects to inspect so that IDEs can integrate with SourceKit.
726715 * `output_archive`: The static archive (`.a`) that was produced by the
727716 archiving step after compilation.
728717 * `output_doc`: The `.swiftdoc` file that was produced by the compiler.
@@ -847,7 +836,6 @@ def _compile_as_library(
847836
848837 providers = [
849838 _build_swift_info (
850- compile_options = compile_results .compile_options ,
851839 deps = all_deps ,
852840 direct_additional_inputs = (
853841 additional_inputs + compile_results .linker_inputs
@@ -884,7 +872,6 @@ def _compile_as_library(
884872
885873 return struct (
886874 compile_inputs = compile_results .compile_inputs ,
887- compile_options = compile_results .compile_options ,
888875 output_archive = out_archive ,
889876 output_doc = compile_results .output_doc ,
890877 output_groups = compile_results .output_groups ,
@@ -1105,7 +1092,6 @@ def _merge_swift_info_providers(targets):
11051092 transitive_swiftmodules .append (p .transitive_swiftmodules )
11061093
11071094 return SwiftInfo (
1108- compile_options = [],
11091095 direct_defines = [],
11101096 direct_libraries = [],
11111097 direct_linkopts = [],
0 commit comments