diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java index facba30099..fda179331f 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java +++ b/src/main/java/com/google/devtools/build/lib/rules/SkylarkRuleImplementationFunctions.java @@ -260,12 +260,13 @@ public class SkylarkRuleImplementationFunctions { + "command instead of " + EvalUtils.getDataTypeName(commandO)); } - - // The actual command can refer to an executable from the inputs, which could - // require some runfiles. Consequently, we add the runfiles of every executable - // input file that is in HOST configuration to the action as a precaution. - addRequiredIndirectRunfiles(ctx, builder); } + + // The actual command can refer to an executable from the inputs, which could + // require some runfiles. Consequently, we add the runfiles of every executable + // input file that is in HOST configuration to the action as a precaution. + addRequiredIndirectRunfiles(ctx, builder); + if (mnemonicO != Runtime.NONE) { builder.setMnemonic((String) mnemonicO); } |