aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java
diff options
context:
space:
mode:
authorGravatar Lukacs Berki <lberki@google.com>2016-05-04 12:56:44 +0000
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2016-05-04 18:24:56 +0000
commite55161f474ff36e310f6f6fff5d5232320df3c54 (patch)
tree3c5b203b1c83f998e4871595a0ee670a8822de53 /src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java
parentb7f23ac2f1b3b05b6a37c51d6fb2a0ad089e81af (diff)
Remove the fields of CppCompileAction relating to "extra system include prefixes" and compiler plugins.
They were dead code. -- MOS_MIGRATED_REVID=121473393
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java
index 76dd500c17..ed4652ad3f 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java
@@ -168,7 +168,6 @@ public class CppCompileAction extends AbstractAction
private final NestedSet<Artifact> mandatoryInputs;
private final boolean shouldScanIncludes;
private final CppCompilationContext context;
- private final Collection<PathFragment> extraSystemIncludePrefixes;
private final Iterable<IncludeScannable> lipoScannables;
private final ImmutableList<Artifact> builtinIncludeFiles;
@VisibleForTesting public final CppCompileCommandLine cppCompileCommandLine;
@@ -251,9 +250,7 @@ public class CppCompileAction extends AbstractAction
CppCompilationContext context,
Class<? extends CppCompileActionContext> actionContext,
ImmutableList<String> copts,
- ImmutableList<String> pluginOpts,
Predicate<String> coptsFilter,
- ImmutableList<PathFragment> extraSystemIncludePrefixes,
@Nullable String fdoBuildStamp,
SpecialInputsHandler specialInputsHandler,
Iterable<IncludeScannable> lipoScannables,
@@ -277,7 +274,6 @@ public class CppCompileAction extends AbstractAction
this.dwoFile = dwoFile;
this.optionalSourceFile = optionalSourceFile;
this.context = context;
- this.extraSystemIncludePrefixes = extraSystemIncludePrefixes;
this.specialInputsHandler = specialInputsHandler;
this.cppConfiguration = cppConfiguration;
// inputsKnown begins as the logical negation of shouldScanIncludes.
@@ -293,7 +289,6 @@ public class CppCompileAction extends AbstractAction
dwoFile,
copts,
coptsFilter,
- pluginOpts,
features,
featureConfiguration,
variables,
@@ -496,15 +491,6 @@ public class CppCompileAction extends AbstractAction
return outputFile.getExecPath();
}
- @VisibleForTesting
- public List<String> getPluginOpts() {
- return cppCompileCommandLine.pluginOpts;
- }
-
- Collection<PathFragment> getExtraSystemIncludePrefixes() {
- return extraSystemIncludePrefixes;
- }
-
@Override
public Map<Artifact, Artifact> getLegalGeneratedScannerFileMap() {
Map<Artifact, Artifact> legalOuts = new HashMap<>();
@@ -832,7 +818,7 @@ public class CppCompileAction extends AbstractAction
private Iterable<PathFragment> getValidationIgnoredDirs() {
List<PathFragment> cxxSystemIncludeDirs = cppConfiguration.getBuiltInIncludeDirectories();
return Iterables.concat(
- cxxSystemIncludeDirs, extraSystemIncludePrefixes, context.getSystemIncludeDirs());
+ cxxSystemIncludeDirs, context.getSystemIncludeDirs());
}
/**
@@ -962,7 +948,6 @@ public class CppCompileAction extends AbstractAction
systemIncludePrefixes.add(includePath);
}
}
- systemIncludePrefixes.addAll(extraSystemIncludePrefixes);
// Check inclusions.
IncludeProblems problems = new IncludeProblems();
@@ -1157,7 +1142,6 @@ public class CppCompileAction extends AbstractAction
f.addPaths(context.getDeclaredIncludeDirs());
f.addPaths(context.getDeclaredIncludeWarnDirs());
f.addPaths(getDeclaredIncludeSrcsInStableOrder());
- f.addPaths(getExtraSystemIncludePrefixes());
f.addPaths(Artifact.asSortedPathFragments(getMandatoryInputs()));
return f.hexDigestAndReset();
}
@@ -1273,11 +1257,6 @@ public class CppCompileAction extends AbstractAction
message.append('\n');
}
- for (PathFragment path : getExtraSystemIncludePrefixes()) {
- message.append(" Extra system include prefix: ");
- message.append(ShellEscaper.escapeString(path.getPathString()));
- message.append('\n');
- }
return message.toString();
}
@@ -1290,7 +1269,6 @@ public class CppCompileAction extends AbstractAction
@Nullable private final Artifact dwoFile;
private final List<String> copts;
private final Predicate<String> coptsFilter;
- private final List<String> pluginOpts;
private final Collection<String> features;
private final FeatureConfiguration featureConfiguration;
@VisibleForTesting public final CcToolchainFeatures.Variables variables;
@@ -1305,7 +1283,6 @@ public class CppCompileAction extends AbstractAction
@Nullable Artifact dwoFile,
ImmutableList<String> copts,
Predicate<String> coptsFilter,
- ImmutableList<String> pluginOpts,
Collection<String> features,
FeatureConfiguration featureConfiguration,
CcToolchainFeatures.Variables variables,
@@ -1317,7 +1294,6 @@ public class CppCompileAction extends AbstractAction
this.dwoFile = dwoFile;
this.copts = Preconditions.checkNotNull(copts);
this.coptsFilter = coptsFilter;
- this.pluginOpts = Preconditions.checkNotNull(pluginOpts);
this.features = Preconditions.checkNotNull(features);
this.featureConfiguration = featureConfiguration;
this.variables = variables;
@@ -1356,8 +1332,6 @@ public class CppCompileAction extends AbstractAction
List<String> options = new ArrayList<>();
CppConfiguration toolchain = cppConfiguration;
- // pluginOpts has to be added before defaultCopts because -fplugin must precede -plugin-arg.
- options.addAll(pluginOpts);
addFilteredOptions(options, toolchain.getCompilerOptions(features));
String sourceFilename = sourceFile.getExecPathString();