We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e55172f commit 8d1bd7dCopy full SHA for 8d1bd7d
compiler-rt/lib/sanitizer_common/sanitizer_platform.h
@@ -14,7 +14,8 @@
14
15
#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && \
16
!defined(__APPLE__) && !defined(_WIN32) && !defined(__Fuchsia__) && \
17
- !(defined(__sun__) && defined(__svr4__)) && !defined(__HAIKU__)
+ !(defined(__sun__) && defined(__svr4__)) && !defined(__HAIKU__) && \
18
+ !defined(__wasi__)
19
# error "This operating system is not supported"
20
#endif
21
@@ -61,6 +62,12 @@
61
62
# define SANITIZER_HAIKU 0
63
64
65
+#if defined(__wasi__)
66
+# define SANITIZER_WASI 1
67
+#else
68
+# define SANITIZER_WASI 0
69
+#endif
70
+
71
// - SANITIZER_APPLE: all Apple code
72
// - TARGET_OS_OSX: macOS
73
// - SANITIZER_IOS: devices (iOS and iOS-like)
0 commit comments