mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #6030 from deepikabhavnani/correct_arch
M33: -march not required if -mcpu is setpull/6042/head
commit
02eeb7af41
|
@ -86,11 +86,6 @@ class GCC(mbedToolchain):
|
|||
self.cpu.append("-mfloat-abi=hard")
|
||||
self.cpu.append("-mno-unaligned-access")
|
||||
|
||||
if target.core.startswith("Cortex-M23"):
|
||||
self.cpu.append("-march=armv8-m.base")
|
||||
elif target.core.startswith("Cortex-M33"):
|
||||
self.cpu.append("-march=armv8-m.main")
|
||||
|
||||
if target.core == "Cortex-M23" or target.core == "Cortex-M33":
|
||||
self.cpu.append("-mcmse")
|
||||
|
||||
|
|
Loading…
Reference in New Issue