Use toolchain to get binary extension for symlinks

am: 989c66e370

Change-Id: Ic1f4864862fc5a03eb5805cee1c5e94eef0423a2
This commit is contained in:
Colin Cross 2016-12-08 23:47:07 +00:00 committed by android-build-merger
commit 5ecfc07284

View file

@ -301,7 +301,7 @@ func (binary *binaryDecorator) install(ctx ModuleContext, file android.Path) {
binary.baseInstaller.install(ctx, file)
for _, symlink := range binary.Properties.Symlinks {
binary.symlinks = append(binary.symlinks,
symlink+binary.Properties.Suffix+binary.baseInstaller.path.Ext())
symlink+binary.Properties.Suffix+ctx.toolchain().ExecutableSuffix())
}
if binary.Properties.Symlink_preferred_arch {