Merge "Fix incomplete LTO bug workaround."

am: 6bcee9abff

Change-Id: Ia059d3c4a69a720ee069d98ec1676c3cb07c882f
This commit is contained in:
android-build-prod (mdb)
2018-04-25 18:01:33 -07:00
committed by android-build-merger

View File

@@ -21,6 +21,7 @@ import (
"github.com/google/blueprint/pathtools"
"android/soong/android"
"android/soong/cc/config"
)
type LibraryProperties struct {
@@ -747,7 +748,7 @@ func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) {
!ctx.useVndk() && ctx.Device() &&
library.sanitize.isUnsanitizedVariant() {
installPath := getNdkSysrootBase(ctx).Join(
ctx, "usr/lib", ctx.toolchain().ClangTriple(), file.Base())
ctx, "usr/lib", config.NDKTriple(ctx.toolchain()), file.Base())
ctx.ModuleBuild(pctx, android.ModuleBuildParams{
Rule: android.Cp,