From 1b95d96a720746d8456c079aaf2d44b5e65f3e77 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 19 Apr 2021 00:12:57 -0400 Subject: [PATCH] toolchain: add llvm abstraction Add abstraction for llvm to allow for toolchain customizations that are different from the gcc defaults. Signed-off-by: Anas Nashif --- include/toolchain.h | 2 ++ include/toolchain/llvm.h | 9 --------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/include/toolchain.h b/include/toolchain.h index ea905a083b3..88639a83c42 100644 --- a/include/toolchain.h +++ b/include/toolchain.h @@ -37,6 +37,8 @@ #include #elif defined(__CCAC__) #include +#elif defined(__llvm__) +#include #elif defined(__GNUC__) || (defined(_LINKER) && defined(__GCC_LINKER_CMD__)) #include #else diff --git a/include/toolchain/llvm.h b/include/toolchain/llvm.h index dc4421aef65..afcac9c279e 100644 --- a/include/toolchain/llvm.h +++ b/include/toolchain/llvm.h @@ -7,18 +7,9 @@ #ifndef ZEPHYR_INCLUDE_TOOLCHAIN_LLVM_H_ #define ZEPHYR_INCLUDE_TOOLCHAIN_LLVM_H_ -#ifndef _LINKER -#if defined(_ASMLANGUAGE) - -#include - -#else /* defined(_ASMLANGUAGE) */ #define __no_optimization __attribute__((optnone)) - #include -#endif /* _ASMLANGUAGE */ -#endif /* !_LINKER */ #endif /* ZEPHYR_INCLUDE_TOOLCHAIN_LLVM_H_ */