From f5887da718fbe755b2404e1bacdae59c1edab944 Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 25 Nov 2020 08:05:06 -0800 Subject: [PATCH] Fix typo: COMPIILER_PARAM_FILE -> COMPILER_PARAM_FILE PiperOrigin-RevId: 344254498 --- .../google/devtools/build/lib/rules/cpp/CppCompileAction.java | 4 ++-- .../google/devtools/build/lib/rules/cpp/CppRuleClasses.java | 2 +- .../com/google/devtools/build/lib/rules/cpp/CcCommonTest.java | 2 +- 3 files changed, 4 insertions(+), 4 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 770722acafc4af..9fec2e5bc38438 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 @@ -298,7 +298,7 @@ public class CppCompileAction extends AbstractAction implements IncludeScannable this.usedModules = null; this.topLevelModules = null; this.grepIncludes = grepIncludes; - if (featureConfiguration.isEnabled(CppRuleClasses.COMPIILER_PARAM_FILE)) { + if (featureConfiguration.isEnabled(CppRuleClasses.COMPILER_PARAM_FILE)) { paramFilePath = outputFile .getExecPath() @@ -1361,7 +1361,7 @@ static byte[] computeCommandLineKey(List compilerOptions) { @Override public ActionContinuationOrResult beginExecution(ActionExecutionContext actionExecutionContext) throws ActionExecutionException, InterruptedException { - if (featureConfiguration.isEnabled(CppRuleClasses.COMPIILER_PARAM_FILE)) { + if (featureConfiguration.isEnabled(CppRuleClasses.COMPILER_PARAM_FILE)) { try { paramFileActionInput = new ParamFileActionInput( diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java index 4dadd68f519280..7e4f0a91d4d9ef 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppRuleClasses.java @@ -418,7 +418,7 @@ public static Label ccToolchainTypeAttribute(RuleDefinitionEnvironment env) { */ public static final String DO_NOT_SPLIT_LINKING_CMDLINE = "do_not_split_linking_cmdline"; - public static final String COMPIILER_PARAM_FILE = "compiler_param_file"; + public static final String COMPILER_PARAM_FILE = "compiler_param_file"; /** * A feature to indicate that this target generates debug symbols for a dSYM file. For Apple diff --git a/src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java b/src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java index 0eeefc15980185..59a3d65703027b 100644 --- a/src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java +++ b/src/test/java/com/google/devtools/build/lib/rules/cpp/CcCommonTest.java @@ -1048,7 +1048,7 @@ public void testCompilationParameterFile() throws Exception { .ccSupport() .setupCcToolchainConfig( mockToolsConfig, - CcToolchainConfig.builder().withFeatures(CppRuleClasses.COMPIILER_PARAM_FILE)); + CcToolchainConfig.builder().withFeatures(CppRuleClasses.COMPILER_PARAM_FILE)); scratch.file("a/BUILD", "cc_library(name='foo', srcs=['foo.cc'])"); CppCompileAction cppCompileAction = getCppCompileAction("//a:foo"); assertThat(