summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Alexander Koskovich <akoskovich@pm.me> 2023-08-12 23:09:00 -0400
committer Alexander Koskovich <akoskovich@pm.me> 2023-08-12 23:16:15 -0400
commitc46c6d4edf7e4c4c932b962da93e466ea7946d10 (patch)
treecfef2eab2c1e9df1e56e3069ebb08279ddf79529
parent64876012de3eda2b418700b9022d4030b29b53d1 (diff)
soong: Use the CpExecutable rule for copying libraries
If you compile a shared library with 'cc_library_shared' it will be executable. If you build one with 'cc_prebuilt_library_shared' it will not. Use CpExecutable so it's consistent. Test: Observe that all cc_prebuilt_library_shared modules are executable. Change-Id: I3d7edfc920760aa2f73e4527d4cfab1baa1523fc
-rw-r--r--cc/prebuilt.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/prebuilt.go b/cc/prebuilt.go
index a4ca59050..e2cd3ad73 100644
--- a/cc/prebuilt.go
+++ b/cc/prebuilt.go
@@ -178,7 +178,7 @@ func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
implicits = append(implicits, importLibOutputFile)
ctx.Build(pctx, android.BuildParams{
- Rule: android.Cp,
+ Rule: android.CpExecutable,
Description: "prebuilt import library",
Input: importLibSrc,
Output: importLibOutputFile,
@@ -189,7 +189,7 @@ func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
}
ctx.Build(pctx, android.BuildParams{
- Rule: android.Cp,
+ Rule: android.CpExecutable,
Description: "prebuilt shared library",
Implicits: implicits,
Input: in,