Skip to content

Commit 7a54f51

Browse files
committed
arc: Use "-mcpu=archs" instead of deprecated "-marchs" for ARC HS
Newer ARC toolchains don't support "-marchs" option any longer. Instead "-mcpu=archs" should be used. What's also important older toiolchains that support ARC HS cores will also happily accept "-mcpu=archs" so that's a very safe move. Signed-off-by: Alexey Brodkin <[email protected]>
1 parent 0e1e587 commit 7a54f51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arc/config.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ PLATFORM_CPPFLAGS += -marcem
4343
endif
4444

4545
ifdef CONFIG_CPU_ARCHS34
46-
PLATFORM_CPPFLAGS += -marchs
46+
PLATFORM_CPPFLAGS += -mcpu=archs
4747
endif
4848

4949
ifdef CONFIG_CPU_ARCHS38
50-
PLATFORM_CPPFLAGS += -marchs
50+
PLATFORM_CPPFLAGS += -mcpu=archs
5151
endif
5252

5353
PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2

0 commit comments

Comments
 (0)