Skip to content

Commit 261deae

Browse files
committed
CMake: Fix Cortex-A9 builds with GCC_ARM
Add the `-march` flag for Cortex-A9 GCC_ARM in order to generate instructions for the armv7-a machine type.
1 parent 2660621 commit 261deae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/cmake/cores/Cortex-A9.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# Copyright (c) 2020 ARM Limited. All rights reserved.
1+
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
55
list(APPEND common_options
66
"-mthumb-interwork"
77
"-marm"
8+
"-march=armv7-a"
89
"-mfpu=vfpv3"
910
"-mfloat-abi=hard"
1011
"-mno-unaligned-access"

0 commit comments

Comments
 (0)