diff options
author | 2016-11-23 21:50:27 +0000 | |
---|---|---|
committer | 2016-11-24 10:32:59 +0000 | |
commit | 270fdd6b4a22f96a3642e7d3bb562b721cde099b (patch) | |
tree | 2e19de42131252e81160f3eade95cd1758e869f4 /src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java | |
parent | f8eba6ab7df665a5ba9820bbc1071186989d25b6 (diff) |
Remove Swift support from native rules
--
MOS_MIGRATED_REVID=140068224
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java index 3e15538b79..bbb0493f64 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java @@ -34,7 +34,6 @@ import com.google.devtools.build.lib.rules.cpp.CppModuleMap; import com.google.devtools.build.lib.syntax.Type; import com.google.devtools.build.lib.util.Pair; import com.google.devtools.build.lib.vfs.PathFragment; - import java.util.List; /** @@ -55,7 +54,6 @@ final class CompilationAttributes { private final NestedSetBuilder<SdkFramework> sdkFrameworks = NestedSetBuilder.stableOrder(); private final NestedSetBuilder<SdkFramework> weakSdkFrameworks = NestedSetBuilder.stableOrder(); private final NestedSetBuilder<String> sdkDylibs = NestedSetBuilder.stableOrder(); - private Optional<Artifact> bridgingHeader = Optional.absent(); private Optional<PathFragment> packageFragment = Optional.absent(); private boolean enableModules; @@ -156,18 +154,6 @@ final class CompilationAttributes { } /** - * Sets the bridging header to be used when compiling Swift sources. - */ - public Builder setBridgingHeader(Artifact bridgingHeader) { - Preconditions.checkState( - !this.bridgingHeader.isPresent(), - "bridgingHeader is already set to %s", - this.bridgingHeader); - this.bridgingHeader = Optional.of(bridgingHeader); - return this; - } - - /** * Sets the package path from which to base the header search paths. */ public Builder setPackageFragment(PathFragment packageFragment) { @@ -194,7 +180,6 @@ final class CompilationAttributes { return new CompilationAttributes( this.hdrs.build(), this.textualHdrs.build(), - this.bridgingHeader, this.includes.build(), this.sdkIncludes.build(), this.sdkFrameworks.build(), @@ -220,13 +205,6 @@ final class CompilationAttributes { builder.addTextualHdrs( PrerequisiteArtifacts.nestedSet(ruleContext, "textual_hdrs", Mode.TARGET)); } - - if (ruleContext.attributes().has("bridging_header", BuildType.LABEL)) { - Artifact header = ruleContext.getPrerequisiteArtifact("bridging_header", Mode.TARGET); - if (header != null) { - builder.setBridgingHeader(header); - } - } } private static void addIncludesFromRuleContext(Builder builder, RuleContext ruleContext) { @@ -329,7 +307,6 @@ final class CompilationAttributes { private final NestedSet<Artifact> hdrs; private final NestedSet<Artifact> textualHdrs; - private final Optional<Artifact> bridgingHeader; private final NestedSet<PathFragment> includes; private final NestedSet<PathFragment> sdkIncludes; private final NestedSet<SdkFramework> sdkFrameworks; @@ -344,7 +321,6 @@ final class CompilationAttributes { private CompilationAttributes( NestedSet<Artifact> hdrs, NestedSet<Artifact> textualHdrs, - Optional<Artifact> bridgingHeader, NestedSet<PathFragment> includes, NestedSet<PathFragment> sdkIncludes, NestedSet<SdkFramework> sdkFrameworks, @@ -357,7 +333,6 @@ final class CompilationAttributes { boolean enableModules) { this.hdrs = hdrs; this.textualHdrs = textualHdrs; - this.bridgingHeader = bridgingHeader; this.includes = includes; this.sdkIncludes = sdkIncludes; this.sdkFrameworks = sdkFrameworks; @@ -385,13 +360,6 @@ final class CompilationAttributes { } /** - * Returns the bridging header to be used when compiling Swift sources. - */ - public Optional<Artifact> bridgingHeader() { - return this.bridgingHeader; - } - - /** * Returns the include paths to be made available for compilation. */ public NestedSet<PathFragment> includes() { |