[PATCH] D36033: [ubsan] Enable UBSan build for Fuchsia
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 1 13:49:29 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL309742: [ubsan] Enable UBSan build for Fuchsia (authored by vitalybuka).
Changed prior to commit:
https://reviews.llvm.org/D36033?vs=109189&id=109199#toc
Repository:
rL LLVM
https://reviews.llvm.org/D36033
Files:
compiler-rt/trunk/cmake/config-ix.cmake
compiler-rt/trunk/lib/ubsan/ubsan_platform.h
Index: compiler-rt/trunk/lib/ubsan/ubsan_platform.h
===================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_platform.h
+++ compiler-rt/trunk/lib/ubsan/ubsan_platform.h
@@ -19,7 +19,7 @@
defined(__aarch64__) || defined(__mips__) || defined(__powerpc64__) || \
defined(__s390__))
# define CAN_SANITIZE_UB 1
-#elif defined(_WIN32)
+#elif defined(_WIN32) || defined(__Fuchsia__)
# define CAN_SANITIZE_UB 1
#else
# define CAN_SANITIZE_UB 0
Index: compiler-rt/trunk/cmake/config-ix.cmake
===================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake
+++ compiler-rt/trunk/cmake/config-ix.cmake
@@ -533,7 +533,7 @@
endif()
if (COMPILER_RT_HAS_SANITIZER_COMMON AND UBSAN_SUPPORTED_ARCH AND
- OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android")
+ OS_NAME MATCHES "Darwin|Linux|FreeBSD|Windows|Android|Fuchsia")
set(COMPILER_RT_HAS_UBSAN TRUE)
else()
set(COMPILER_RT_HAS_UBSAN FALSE)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36033.109199.patch
Type: text/x-patch
Size: 1011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170801/572204c9/attachment.bin>
More information about the llvm-commits
mailing list