Skip to content

Commit 56a8123

Browse files
dcpleungnashif
authored andcommitted
toolchain: xcc/xt-clang: include llvm.h for xt-clang...
...and removed the copied macros. This allows xt-clang to inherit macros from llvm.h to align with any LLVM related additions. Signed-off-by: Daniel Leung <[email protected]>
1 parent 2a66f94 commit 56a8123

File tree

1 file changed

+3
-14
lines changed
  • include/zephyr/toolchain

1 file changed

+3
-14
lines changed

include/zephyr/toolchain/xcc.h

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,10 @@
1919
#endif
2020

2121
#ifdef __clang__
22-
#if __clang_major__ >= 10
23-
#define __fallthrough __attribute__((fallthrough))
24-
#endif
25-
26-
#define TOOLCHAIN_CLANG_VERSION \
27-
((__clang_major__ * 10000) + (__clang_minor__ * 100) + \
28-
__clang_patchlevel__)
29-
30-
#if TOOLCHAIN_CLANG_VERSION >= 30800
31-
#define TOOLCHAIN_HAS_C_GENERIC 1
32-
#define TOOLCHAIN_HAS_C_AUTO_TYPE 1
33-
#endif
34-
#endif
35-
22+
#include <zephyr/toolchain/llvm.h>
23+
#else
3624
#include <zephyr/toolchain/gcc.h>
25+
#endif
3726

3827
#ifndef __clang__
3928
#undef __BYTE_ORDER__

0 commit comments

Comments
 (0)