Loading android/bazel_handler.go +10 −1 Original line number Diff line number Diff line Loading @@ -811,6 +811,15 @@ func (c *bazelSingleton) GenerateBuildActions(ctx SingletonContext) { // cd into Bazel's execution root, which is the action cwd. cmd.Text(fmt.Sprintf("cd %s/execroot/__main__ &&", ctx.Config().BazelContext.OutputBase())) // Remove old outputs, as some actions might not rerun if the outputs are detected. if len(buildStatement.OutputPaths) > 0 { cmd.Text("rm -f") for _, outputPath := range buildStatement.OutputPaths { cmd.Text(PathForBazelOut(ctx, outputPath).String()) } cmd.Text("&&") } for _, pair := range buildStatement.Env { // Set per-action env variables, if any. cmd.Flag(pair.Key + "=" + pair.Value) Loading Loading
android/bazel_handler.go +10 −1 Original line number Diff line number Diff line Loading @@ -811,6 +811,15 @@ func (c *bazelSingleton) GenerateBuildActions(ctx SingletonContext) { // cd into Bazel's execution root, which is the action cwd. cmd.Text(fmt.Sprintf("cd %s/execroot/__main__ &&", ctx.Config().BazelContext.OutputBase())) // Remove old outputs, as some actions might not rerun if the outputs are detected. if len(buildStatement.OutputPaths) > 0 { cmd.Text("rm -f") for _, outputPath := range buildStatement.OutputPaths { cmd.Text(PathForBazelOut(ctx, outputPath).String()) } cmd.Text("&&") } for _, pair := range buildStatement.Env { // Set per-action env variables, if any. cmd.Flag(pair.Key + "=" + pair.Value) Loading