Use toolchain to get binary extension for symlinks

Get the binary extension directly from the toolchain instead of
computing it from the target.

Test: mmma -j external/clang
Change-Id: Ib181bc60d0617ad50529791e7b9fc61268376819
This commit is contained in:
Colin Cross 2016-12-08 09:43:41 -08:00
parent 9b09f248d8
commit 989c66e370

View file

@ -301,7 +301,7 @@ func (binary *binaryDecorator) install(ctx ModuleContext, file android.Path) {
binary.baseInstaller.install(ctx, file) binary.baseInstaller.install(ctx, file)
for _, symlink := range binary.Properties.Symlinks { for _, symlink := range binary.Properties.Symlinks {
binary.symlinks = append(binary.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 { if binary.Properties.Symlink_preferred_arch {