Skip to content

Commit 27de1e2

Browse files
evgeniy-paltsevcfriedt
authored andcommitted
ARC: MWDT: explicitly forbid to use NEWLIB / NATIVE_APPLICATION
ARC MWDT doesn't support building Zephyr as an native application (CONFIG_NATIVE_APPLICATION). ARC MWDT doesn't support building with CONFIG_NEWLIB_LIBC as it doesn't have newlib. Let's explicitly forbid to use these Kconfig options for the MWDT toolchain. Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: Evgeniy Paltsev <[email protected]>
1 parent d8590d7 commit 27de1e2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/toolchain/mwdt.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@
7171
#endif
7272
#endif /* _SSIZE_T_DEFINED */
7373

74+
#ifdef CONFIG_NEWLIB_LIBC
75+
#error "ARC MWDT doesn't support building with CONFIG_NEWLIB_LIBC as it doesn't have newlib"
76+
#endif /* CONFIG_NEWLIB_LIBC */
77+
78+
#ifdef CONFIG_NATIVE_APPLICATION
79+
#error "ARC MWDT doesn't support building Zephyr as an native application"
80+
#endif /* CONFIG_NATIVE_APPLICATION */
81+
7482

7583
#define __no_optimization __attribute__((optnone))
7684

0 commit comments

Comments
 (0)