[llvm] [orc-rt] Add Windows dynamic library support (PR #225076)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 23:21:21 PDT 2026
================
@@ -0,0 +1,14 @@
+#ifndef ORC_RT_TEST_UNIT_INPUTS_TESTVISIBILITY_H
+#define ORC_RT_TEST_UNIT_INPUTS_TESTVISIBILITY_H
+
+#if defined(_WIN32)
+#if defined(ORC_RT_TEST_DLL_EXPORTS)
+#define TEST_EXPORT __declspec(dllexport)
+#else
+#define TEST_EXPORT __declspec(dllimport)
+#endif
+#else
+#define TEST_EXPORT __attribute__((visibility("default")))
+#endif
+
+#endif // ORC_RT_TEST_UNIT_INPUTS_TESTVISIBILITY_H
----------------
lhames wrote:
This looks general purpose -- it could probably go in `orc-rt/test/unit` with the other generic test utils, but that can be a follow-up.
https://github.com/llvm/llvm-project/pull/225076
More information about the llvm-commits
mailing list