Merge pull request #67 from MaskRay/aarch64

Add :aarch32 :aarch64 and make :arm64 alias for :aarch64
This commit is contained in:
aiuto 2023-05-17 16:23:33 -04:00 committed by GitHub
commit 7815f135e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 11 deletions

View File

@ -30,19 +30,21 @@ constraint_setting(name = "cpu")
# Many of the name here are legacy values and probably violate these conditions.
# We'll try to clean those up over time.
# TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
alias(
name = "aarch64",
actual = ":arm64",
constraint_value(
name = "aarch32",
constraint_setting = ":cpu",
)
# TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
constraint_value(
name = "arm",
name = "aarch64",
constraint_setting = ":cpu",
)
alias(
name = "arm",
actual = ":aarch32",
)
# Cortex-M0, Cortex-M0+, Cortex-M1
constraint_value(
name = "armv6-m", # Commonly known as thumbv6
@ -73,13 +75,13 @@ constraint_value(
constraint_setting = ":cpu",
)
constraint_value(
name = "arm64_32",
constraint_setting = ":cpu",
alias(
name = "arm64",
actual = ":aarch64",
)
constraint_value(
name = "arm64",
name = "arm64_32",
constraint_setting = ":cpu",
)