Skip to content

Commit

Permalink
Force SAMD21 and SAMR21 targets to ARMC5 due to incompatibility.
Browse files Browse the repository at this point in the history
The hal code for this target uses "const volatile" types inside of
structs, which are non-trivially copyable in clang (used by ARMC6). This
causes the build to fail.

Here's the commit that changed this in clang:
llvm-mirror/clang@a3d727b

It seems this was reverteed some time ago in clang, but ARMC6 may not
be up to date.
  • Loading branch information
bridadan committed Apr 9, 2019
1 parent 8a2836f commit 11775ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions targets/targets.json
Expand Up @@ -6646,7 +6646,7 @@
"TC_ASYNC=true"
],
"extra_labels": ["Atmel", "SAM_CortexM0P", "SAMR21"],
"supported_toolchains": ["GCC_ARM", "ARM", "uARM"],
"supported_toolchains": ["GCC_ARM", "ARMC5", "uARM"],
"device_has": [
"ANALOGIN",
"I2C",
Expand Down Expand Up @@ -6679,7 +6679,7 @@
"TC_ASYNC=true"
],
"extra_labels": ["Atmel", "SAM_CortexM0P", "SAMD21"],
"supported_toolchains": ["GCC_ARM", "ARM", "uARM"],
"supported_toolchains": ["GCC_ARM", "ARMC5", "uARM"],
"device_has": [
"ANALOGIN",
"ANALOGOUT",
Expand Down Expand Up @@ -6713,7 +6713,7 @@
"TC_ASYNC=true"
],
"extra_labels": ["Atmel", "SAM_CortexM0P", "SAMD21"],
"supported_toolchains": ["GCC_ARM", "ARM", "uARM"],
"supported_toolchains": ["GCC_ARM", "ARMC5", "uARM"],
"device_has": [
"ANALOGIN",
"ANALOGOUT",
Expand Down Expand Up @@ -6747,7 +6747,7 @@
"TC_ASYNC=true"
],
"extra_labels": ["Atmel", "SAM_CortexM0P", "SAML21"],
"supported_toolchains": ["GCC_ARM", "ARM", "uARM"],
"supported_toolchains": ["GCC_ARM", "ARMC5", "uARM"],
"device_has": [
"ANALOGIN",
"ANALOGOUT",
Expand Down

0 comments on commit 11775ef

Please sign in to comment.