aboutsummaryrefslogtreecommitdiffstats
path: root/cc/ndk_library.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-08-31 12:29:17 -0700
committerColin Cross <ccross@android.com>2017-08-31 13:48:52 -0700
commit5c51792926b063945d786cc8a1e407a2ce2159cf (patch)
treecef55100e4632b4a1c4d141392287802c65f3693 /cc/ndk_library.go
parentadd7fdf1a5d7652cfc8ef8da4e517eb4e11e0e08 (diff)
downloadbuild_soong-5c51792926b063945d786cc8a1e407a2ce2159cf.tar.gz
build_soong-5c51792926b063945d786cc8a1e407a2ce2159cf.tar.bz2
build_soong-5c51792926b063945d786cc8a1e407a2ce2159cf.zip
Make binaries executable
Split InstallFileName into InstallExecutable that does chmod +x after copying the file. Also remove InstallFile and rename InstallFileName to InstallFile. Test: m -j checkbuild Change-Id: Id41ad4eafe521f6cd5d8cc250b7747ecb3da8dfc
Diffstat (limited to 'cc/ndk_library.go')
-rw-r--r--cc/ndk_library.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/ndk_library.go b/cc/ndk_library.go
index fc7cd918..a408fc54 100644
--- a/cc/ndk_library.go
+++ b/cc/ndk_library.go
@@ -341,7 +341,7 @@ func (stub *stubDecorator) install(ctx ModuleContext, path android.Path) {
installDir := getNdkInstallBase(ctx).Join(ctx, fmt.Sprintf(
"platforms/android-%s/arch-%s/usr/%s", apiLevel, arch, libDir))
- stub.installPath = ctx.InstallFile(installDir, path).String()
+ stub.installPath = ctx.InstallFile(installDir, path.Base(), path).String()
}
func newStubLibrary() *Module {