Force rebuild linker.config.pb even after a build error

After a build failure of linker.config.pb, we must manually remove
the temp.pb file to resume the build again after fixing the error.
By adding '--force' flag, the script will overwrite the existing
temp.pb file.

Bug: na
Test: build after an error for linker.config.pb
Change-Id: If51ba8291de49a7c0bed8771d702f61c904d3455
This commit is contained in:
Justin Yun
2024-08-27 10:30:27 +09:00
parent 17a362a506
commit 87f543d889

View File

@@ -98,6 +98,7 @@ func BuildLinkerConfig(ctx android.ModuleContext, builder *android.RuleBuilder,
builder.Command().
BuiltTool("conv_linker_config").
Flag("proto").
Flag("--force").
FlagWithInput("-s ", input).
FlagWithOutput("-o ", interimOutput)