[compiler-rt] [compiler-rt] allow building with uefi (PR #131499)

Tristan Ross via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 18 11:05:03 PDT 2025


https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/131499

>From a4b5328e4e18a65bb9b036090bd3dad32059e652 Mon Sep 17 00:00:00 2001
From: Tristan Ross <tristan.ross at midstall.com>
Date: Sat, 15 Mar 2025 22:58:34 -0700
Subject: [PATCH] [compiler-rt] allow building with uefi

---
 compiler-rt/lib/builtins/int_lib.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/lib/builtins/int_lib.h b/compiler-rt/lib/builtins/int_lib.h
index f6c1b7cff4b99..943430de259d8 100644
--- a/compiler-rt/lib/builtins/int_lib.h
+++ b/compiler-rt/lib/builtins/int_lib.h
@@ -49,7 +49,7 @@
 #define SYMBOL_NAME(name) XSTR(__USER_LABEL_PREFIX__) #name
 
 #if defined(__ELF__) || defined(__MINGW32__) || defined(__wasm__) ||           \
-    defined(_AIX)    || defined(__CYGWIN__)
+    defined(_AIX) || defined(__CYGWIN__)
 #define COMPILER_RT_ALIAS(name, aliasname) \
   COMPILER_RT_ABI __typeof(name) aliasname __attribute__((__alias__(#name)));
 #elif defined(__APPLE__)
@@ -64,7 +64,7 @@
   COMPILER_RT_ALIAS_VISIBILITY(aliasname) \
   __asm__(SYMBOL_NAME(aliasname) " = " SYMBOL_NAME(name)); \
   COMPILER_RT_ABI __typeof(name) aliasname;
-#elif defined(_WIN32)
+#elif defined(_WIN32) || defined(__UEFI__)
 #define COMPILER_RT_ALIAS(name, aliasname)
 #else
 #error Unsupported target



More information about the llvm-commits mailing list