[PATCH] D46006: [Sanitizers] Fix Solaris build

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 24 06:03:44 PDT 2018


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT330712: The OpenBSD UBsan port introduced two typos that broke the Solaris sanitizer… (authored by ro, committed by ).

Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D46006

Files:
  lib/interception/interception.h
  lib/sanitizer_common/sanitizer_platform.h


Index: lib/interception/interception.h
===================================================================
--- lib/interception/interception.h
+++ lib/interception/interception.h
@@ -19,7 +19,7 @@
 
 #if !SANITIZER_LINUX && !SANITIZER_FREEBSD && !SANITIZER_MAC && \
     !SANITIZER_NETBSD && !SANITIZER_OPENBSD && !SANITIZER_WINDOWS && \
-    !SANITIZER_FUCHSIA && SANITIZER_SOLARIS
+    !SANITIZER_FUCHSIA && !SANITIZER_SOLARIS
 # error "Interception doesn't work on this operating system."
 #endif
 
Index: lib/sanitizer_common/sanitizer_platform.h
===================================================================
--- lib/sanitizer_common/sanitizer_platform.h
+++ lib/sanitizer_common/sanitizer_platform.h
@@ -15,7 +15,7 @@
 
 #if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__) && \
   !defined(__OpenBSD__) && !defined(__APPLE__) && !defined(_WIN32) && \
-  !defined(__Fuchsia__) && !(defined(__sun__) && defined(__srv4__))
+  !defined(__Fuchsia__) && !(defined(__sun__) && defined(__svr4__))
 # error "This operating system is not supported"
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46006.143723.patch
Type: text/x-patch
Size: 1081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180424/dc3b8db9/attachment.bin>


More information about the llvm-commits mailing list