aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-03-26 23:02:43 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-03-26 23:02:43 +0000
commitfbac5b2ed5d4bad0da89e2052543de9653e20ebe (patch)
tree7c6e84f7fed6a2c1f6dcbbe54769358ab42f03fb
parent5ac359ec7553ed489962f5ccb5d9c06e92d41c61 (diff)
parentf339eb4319d53aa7da855dbe8c6d749010fa0c45 (diff)
downloadComputeLibrary-sdk-release.tar.gz
Snap for 11630439 from f339eb4319d53aa7da855dbe8c6d749010fa0c45 to sdk-releasesdk-release
Change-Id: I3c699402cbc197fe6141e42a775338bfb250b499
-rw-r--r--scripts/arm_compute_library_nn_driver.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/arm_compute_library_nn_driver.go b/scripts/arm_compute_library_nn_driver.go
index cbcd60ec7..db3dcc290 100644
--- a/scripts/arm_compute_library_nn_driver.go
+++ b/scripts/arm_compute_library_nn_driver.go
@@ -33,13 +33,13 @@ func isVersionAtLeast(version_name string, target_version int) bool {
func globalFlags(ctx android.BaseContext) []string {
var cppflags []string
- if ctx.AConfig().PlatformVersionName() == "Q" || ctx.AConfig().PlatformVersionName() == "10" ||
- ctx.AConfig().PlatformVersionName() == "R" || ctx.AConfig().PlatformVersionName() == "11" ||
- ctx.AConfig().PlatformVersionName() == "S" || ctx.AConfig().PlatformVersionName() == "12" {
+ if ctx.Config().PlatformVersionName() == "Q" || ctx.Config().PlatformVersionName() == "10" ||
+ ctx.Config().PlatformVersionName() == "R" || ctx.Config().PlatformVersionName() == "11" ||
+ ctx.Config().PlatformVersionName() == "S" || ctx.Config().PlatformVersionName() == "12" {
cppflags = append(cppflags, "-fno-addrsig")
}
- if ctx.AConfig().PlatformVersionName() == "R" || ctx.AConfig().PlatformVersionName() == "11" {
+ if ctx.Config().PlatformVersionName() == "R" || ctx.Config().PlatformVersionName() == "11" {
for _, a := range ctx.DeviceConfig().Arches() {
theArch := a.ArchType.String()
if theArch == "armv8-2a" {
@@ -49,7 +49,7 @@ func globalFlags(ctx android.BaseContext) []string {
}
}
- data_types := strings.Split(ctx.AConfig().GetenvWithDefault("COMPUTE_LIB_DATA_TYPE", "ALL"), ",")
+ data_types := strings.Split(ctx.Config().GetenvWithDefault("COMPUTE_LIB_DATA_TYPE", "ALL"), ",")
for _, x := range data_types {
if strings.ToUpper(x) == "ALL" || strings.ToUpper(x) == "INTEGER" {
@@ -75,7 +75,7 @@ func globalFlags(ctx android.BaseContext) []string {
}
}
- data_layouts := strings.Split(ctx.AConfig().GetenvWithDefault("COMPUTE_LIB_DATA_LAYOUT", "ALL"), ",")
+ data_layouts := strings.Split(ctx.Config().GetenvWithDefault("COMPUTE_LIB_DATA_LAYOUT", "ALL"), ",")
for _, x := range data_layouts {
if strings.ToUpper(x) == "ALL" || strings.ToUpper(x) == "NHWC" {