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:
@@ -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 {
|
||||||
|
Reference in New Issue
Block a user