[PATCH] D36027: [sanitizer_common] Add SANITIZER_FUCHSIA

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 30 23:22:07 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL309539: [sanitizer_common] Add SANITIZER_FUCHSIA (authored by vitalybuka).

Changed prior to commit:
  https://reviews.llvm.org/D36027?vs=108726&id=108861#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D36027

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h


Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h
+++ compiler-rt/trunk/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.108861.patch
Type: text/x-patch
Size: 833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170731/726de4a0/attachment.bin>


More information about the llvm-commits mailing list