From 58dd6a92e55691ff5422b9b8ff82a91bd716ca98 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 13 May 2021 17:45:36 -0700 Subject: [PATCH] Add order-only dependency on shared libraries Improve the dependency accuracy by adding an order-only dependency on the shared library alongside the existing depenency on the table of contents file. The dependency won't cause the module to be rebuilt when the the shared library changes, but will allow anything using the ninja graph for sandboxing to know the dependency exists. Test: manual Change-Id: I3accbcabee62fa0ad3eb3d1aaedc5a4bffe27308 --- cc/builder.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cc/builder.go b/cc/builder.go index 29cde9d2c..51c8a0bdf 100644 --- a/cc/builder.go +++ b/cc/builder.go @@ -804,6 +804,7 @@ func transformObjToDynamicBinary(ctx android.ModuleContext, ImplicitOutputs: implicitOutputs, Inputs: objFiles, Implicits: deps, + OrderOnly: sharedLibs, Args: args, }) }