[PATCH] D36027: [sanitizer_common] Add SANITIZER_FUCHSIA
Roland McGrath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 15:34:29 PDT 2017
mcgrathr created this revision.
mcgrathr added a project: Sanitizers.
Herald added a subscriber: kubamracek.
More changes to follow will add the Fuchsia port.
Repository:
rL LLVM
https://reviews.llvm.org/D36027
Files:
lib/sanitizer_common/sanitizer_platform.h
Index: lib/sanitizer_common/sanitizer_platform.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform.h
+++ lib/sanitizer_common/sanitizer_platform.h
@@ -14,7 +14,7 @@
#define SANITIZER_PLATFORM_H
#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && \
- !defined(__APPLE__) && !defined(_WIN32)
+ !defined(__APPLE__) && !defined(_WIN32) && !defined(__Fuchsia__)
# error "This operating system is not supported"
#endif
@@ -85,6 +85,12 @@
# define SANITIZER_ANDROID 0
#endif
+#if defined(__Fuchsia__)
+# define SANITIZER_FUCHSIA 1
+#else
+# define SANITIZER_FUCHSIA 0
+#endif
+
#define SANITIZER_POSIX \
(SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_MAC || SANITIZER_NETBSD)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36027.108726.patch
Type: text/x-patch
Size: 779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170728/40c3fcb3/attachment.bin>
More information about the llvm-commits
mailing list