Add support for preferred arch symlinks

Add a symlink_preferred_arch property to binaries to allow compiling the
binary for multiple architectures and then creating a symlink to the
preferred archicture, for example dalvikvm32 and dalvikvm64, with
dalvikvm symlinked to dalvikvm64.

Test: mmma -j art/dalvikvm
Change-Id: Ied15f2be9d52c01006fe8ac207c175b78558eab1
This commit is contained in:
Colin Cross
2016-08-24 15:25:47 -07:00
parent 0f4e0d6c5d
commit 1e7d3706d6
5 changed files with 41 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ type config struct {
envFrozen bool
inMake bool
OncePer
}
@@ -332,6 +333,14 @@ func (c *config) AllowMissingDependencies() bool {
return Bool(c.ProductVariables.Allow_missing_dependencies)
}
func (c *config) DevicePrefer32BitExecutables() bool {
return Bool(c.ProductVariables.DevicePrefer32BitExecutables)
}
func (c *config) HostPrefer32BitExecutables() bool {
return Bool(c.ProductVariables.HostPrefer32BitExecutables)
}
func (c *config) SkipDeviceInstall() bool {
return c.EmbeddedInMake() || Bool(c.Mega_device)
}