Skip to content

Commit b01168f

Browse files
committed
CMake: Fix Cortex-A9 flags for GCC_ARM toolchain
The -mcpu=cortex-a9 flag conflicts with the march=armv7-a flag. Opted to keep march=armv7-a as mcpu=cortex-a9 does not allow building the CMake dummy compilation test which is run before configuring a user's project.
1 parent 8a19e3e commit b01168f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/cmake/cores/Cortex-A9.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
99
"-mfpu=vfpv3"
1010
"-mfloat-abi=hard"
1111
"-mno-unaligned-access"
12-
"-mcpu=cortex-a9"
1312
)
1413
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1514
list(APPEND common_options

0 commit comments

Comments
 (0)