[compiler-rt] r309539 - [sanitizer_common] Add SANITIZER_FUCHSIA

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 30 23:21:14 PDT 2017


Author: vitalybuka
Date: Sun Jul 30 23:21:13 2017
New Revision: 309539

URL: http://llvm.org/viewvc/llvm-project?rev=309539&view=rev
Log:
[sanitizer_common] Add SANITIZER_FUCHSIA

Summary: More changes to follow will add the Fuchsia port.

Submitted on behalf of Roland McGrath.

Reviewers: vitalybuka, alekseyshl, kcc

Reviewed By: vitalybuka

Subscribers: kubamracek, llvm-commits, phosek, filcab

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D36027

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

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h?rev=309539&r1=309538&r2=309539&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_platform.h Sun Jul 30 23:21:13 2017
@@ -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)
 




More information about the llvm-commits mailing list