[llvm] [orc-rt] Implement Windows target triple detection (PR #224514)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 20 06:06:18 PDT 2026
================
@@ -65,8 +65,12 @@
TODO: Add the Windows __declspec(dllexport) / __declspec(dllimport) and
static-build cases once there is a shared-library build to exercise them. */
-#if defined(__has_attribute) && __has_attribute(visibility)
+#if defined(_WIN32)
+#define ORC_RT_C_EXPORT
+#elif defined(__has_attribute) && __has_attribute(visibility)
#define ORC_RT_C_EXPORT __attribute__((visibility("default")))
+#else
+#define ORC_RT_C_EXPORT
----------------
lhames wrote:
Is this needed? I'd have thought this would reduce via the else case already?
https://github.com/llvm/llvm-project/pull/224514
More information about the llvm-commits
mailing list