Skip to content

Commit c30f999

Browse files
authored
Update arm-neon.S
arm: fix build on Thumb-only architectures Building tinymembench for ARM Cortex-M currently fails, because the arm-neon.S file contains ARM code that doesn't build on Thumb-only architectures. To account for this and fix the build for Cortex-M, this patch adjusts the compile time condition to also verify that the architecture supports the ARM instruction set, by testing the __ARM_ARCH_ISA_ARM compiler define. Signed-off-by: Thomas Petazzoni <[email protected]>
1 parent 6b5834e commit c30f999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arm-neon.S

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* DEALINGS IN THE SOFTWARE.
2222
*/
2323

24-
#ifdef __arm__
24+
#if defined(__arm__) && defined(__ARM_ARCH_ISA_ARM)
2525

2626
.text
2727
.fpu neon

0 commit comments

Comments
 (0)