[PATCH] include: Always generate CFI directives on macOS.

Ken Thomases ken at codeweavers.com
Thu Sep 26 13:38:16 CDT 2019


Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47736
Signed-off-by: Ken Thomases <ken at codeweavers.com>
---
There's not a good way to detect this support in Clang (without a configure
test), the primary compiler on macOS.  I'm pretty sure that any Apple-provided
default compiler that supports building Wine generally has supported emitting
CFI directives.  Certainly, any that are likely to be used these days.

Otherwise, compilation will fail and we'll have to fix it another way.

 include/wine/asm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/wine/asm.h b/include/wine/asm.h
index 01dfdb1deb8..8c664476ef1 100644
--- a/include/wine/asm.h
+++ b/include/wine/asm.h
@@ -33,7 +33,7 @@
 # define __ASM_STDCALL(name,args) __ASM_NAME(name)
 #endif
 
-#ifdef __GCC_HAVE_DWARF2_CFI_ASM
+#if defined(__GCC_HAVE_DWARF2_CFI_ASM) || defined(__APPLE__)
 # define __ASM_CFI(str) str
 #else
 # define __ASM_CFI(str)
-- 
2.21.0




More information about the wine-devel mailing list