Fix ndk x86_64 and mips64 builds
am: c7fd91a266
* commit 'c7fd91a2660c7e0af1ccea0d662e0804998769ee':
Fix ndk x86_64 and mips64 builds
Change-Id: I03db57ffabde18f8345aa7d4d9cc1d351ae63faf
This commit is contained in:
commit
24280d5a63
10
cc/cc.go
10
cc/cc.go
|
@ -2321,8 +2321,14 @@ func (*toolchainLibraryLinker) installable() bool {
|
|||
// than to the system image).
|
||||
|
||||
func getNdkLibDir(ctx common.AndroidModuleContext, toolchain Toolchain, version string) common.SourcePath {
|
||||
return common.PathForSource(ctx, fmt.Sprintf("prebuilts/ndk/current/platforms/android-%s/arch-%s/usr/lib",
|
||||
version, toolchain.Name()))
|
||||
suffix := ""
|
||||
// Most 64-bit NDK prebuilts store libraries in "lib64", except for arm64 which is not a
|
||||
// multilib toolchain and stores the libraries in "lib".
|
||||
if toolchain.Is64Bit() && ctx.Arch().ArchType != common.Arm64 {
|
||||
suffix = "64"
|
||||
}
|
||||
return common.PathForSource(ctx, fmt.Sprintf("prebuilts/ndk/current/platforms/android-%s/arch-%s/usr/lib%s",
|
||||
version, toolchain.Name(), suffix))
|
||||
}
|
||||
|
||||
func ndkPrebuiltModuleToPath(ctx common.AndroidModuleContext, toolchain Toolchain,
|
||||
|
|
Loading…
Reference in New Issue