================
@@ -56,17 +54,22 @@
 #define CLANG_EXPORT_TEMPLATE
 #endif
 #define CLANG_ABI_EXPORT __declspec(dllexport)
-#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) ||             
\
-    defined(__MVS__) || defined(__CYGWIN__)
-#define CLANG_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
-#define CLANG_ABI_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
-#define CLANG_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
+#elif __has_attribute(visibility)
+#if defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) ||               
\
+    defined(__MVS__) || defined(__CYGWIN__) || defined(__MACH__) ||            
\
+    defined(__wasm__) || defined(__EMSCRIPTEN__)
----------------
compnerd wrote:

Is this anything other than say `!defined(_WIN32) || defined(__MINGW32__) || 
defined(__CYGWIN__)`?

https://github.com/llvm/llvm-project/pull/239750
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to