diff options
author | Olivier Martin <olivier.martin@arm.com> | 2014-10-31 14:05:09 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@Edk2> | 2014-10-31 14:05:09 +0000 |
commit | ba0a34f15f3a3633c1e8d179ab13595413530b29 (patch) | |
tree | 4fccf266d3762d96b584279be8658d4a7bfeb725 /MdePkg/Include/AArch64 | |
parent | f7fe68db7dad70646523a6ae2442f592651df8d9 (diff) | |
download | edk2-ba0a34f15f3a3633c1e8d179ab13595413530b29.zip edk2-ba0a34f15f3a3633c1e8d179ab13595413530b29.tar.gz edk2-ba0a34f15f3a3633c1e8d179ab13595413530b29.tar.bz2 |
MdePkg/ProcessorBind.h: Add ARM and AArch64 GCC macros for Clang
When compiling with Clang, we still use GNU as for the assembler, so we still need to define the GCC_ASM* macros.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16282 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/AArch64')
-rw-r--r-- | MdePkg/Include/AArch64/ProcessorBind.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MdePkg/Include/AArch64/ProcessorBind.h b/MdePkg/Include/AArch64/ProcessorBind.h index f09b15a..c5fe874 100644 --- a/MdePkg/Include/AArch64/ProcessorBind.h +++ b/MdePkg/Include/AArch64/ProcessorBind.h @@ -111,7 +111,9 @@ typedef INT64 INTN; //
#define EFIAPI
-#if defined(__GNUC__)
+// When compiling with Clang, we still use GNU as for the assembler, so we still
+// need to define the GCC_ASM* macros.
+#if defined(__GNUC__) || defined(__clang__)
///
/// For GNU assembly code, .global or .globl can declare global symbols.
/// Define this macro to unify the usage.
|