[compiler-rt] [compiler-rt] Support Windows GNU sanitizer runtimes (PR #209902)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 22 01:05:13 PDT 2026
================
@@ -43,9 +43,13 @@
#define STRINGIFY_(A) #A
#define STRINGIFY(A) STRINGIFY_(A)
-# define IN_SECTION(n) __declspec(allocate(n))
+# if !defined(__GNUC__) || defined(__clang__)
+# define IN_SECTION(n) __declspec(allocate(n))
+# else
+# define IN_SECTION(n) __attribute__((section(n)))
+# endif
-# if !SANITIZER_GO
+# if !SANITIZER_GO && defined(__clang__)
----------------
oltolm wrote:
done
https://github.com/llvm/llvm-project/pull/209902
More information about the llvm-commits
mailing list