From ec2c23063341f49ed14fb1eea5491405c87f9cb2 Mon Sep 17 00:00:00 2001 From: Trevor Joynson Date: Sun, 5 Aug 2018 07:09:38 -0700 Subject: [PATCH] Remove conflicting optimization flags (-mcpu includes -march) (#10165) --- cmake/toolchains/Toolchain-arm-none-eabi.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/toolchains/Toolchain-arm-none-eabi.cmake b/cmake/toolchains/Toolchain-arm-none-eabi.cmake index eb4e77ec86..07727b2f2d 100644 --- a/cmake/toolchains/Toolchain-arm-none-eabi.cmake +++ b/cmake/toolchains/Toolchain-arm-none-eabi.cmake @@ -55,11 +55,11 @@ endforeach() set(cpu_flags) if (CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m7") - set(cpu_flags "-mcpu=cortex-m7 -mthumb -march=armv7e-m -mfpu=fpv5-d16 -mfloat-abi=hard") + set(cpu_flags "-mcpu=cortex-m7 -mthumb -mfpu=fpv5-d16 -mfloat-abi=hard") elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m4") - set(cpu_flags "-mcpu=cortex-m4 -mthumb -march=armv7e-m -mfpu=fpv4-sp-d16 -mfloat-abi=hard") + set(cpu_flags "-mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard") elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "cortex-m3") - set(cpu_flags "-mcpu=cortex-m3 -mthumb -march=armv7-m") + set(cpu_flags "-mcpu=cortex-m3 -mthumb") else () message(FATAL_ERROR "Processor not recognised in toolchain file") endif()