We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f77db4 commit b6606c2Copy full SHA for b6606c2
llvm/include/llvm/Support/Compiler.h
@@ -130,7 +130,12 @@
130
131
#if (!(defined(_WIN32) || defined(__CYGWIN__)) || \
132
(defined(__MINGW32__) && defined(__clang__)))
133
+// Clang compilers older then 15 do not support gnu style attributes on namespaces
134
+#if defined(__clang__) && _clang_major__ < 15
135
+#define LLVM_LIBRARY_VISIBILITY [[gnu::visibility("hidden")]]
136
+#else
137
#define LLVM_LIBRARY_VISIBILITY LLVM_ATTRIBUTE_VISIBILITY_HIDDEN
138
+#endif
139
#define LLVM_ALWAYS_EXPORT LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
140
#elif defined(_WIN32)
141
#define LLVM_ALWAYS_EXPORT __declspec(dllexport)
0 commit comments