summaryrefslogtreecommitdiff
path: root/lib/ubsan/ubsan_platform.h
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2015-07-02 01:44:34 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2015-07-02 01:44:34 +0000
commitf78932b4e5699c8a68be72c928c60e0336edf6ea (patch)
treee35e92c52c4496664dcd0054f43183873de9d3ba /lib/ubsan/ubsan_platform.h
parent5e8af5dbfb9d7d043cf39a7d4e49a45e8c4d1569 (diff)
downloadcompiler-rt-f78932b4e5699c8a68be72c928c60e0336edf6ea.tar.gz
Re-apply r241217 with build fixes:
- Disable building of the interceptor library on 64-bit Windows. - Mangle names in /alternatename directive for 32-bit Windows. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@241224 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ubsan/ubsan_platform.h')
-rw-r--r--lib/ubsan/ubsan_platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ubsan/ubsan_platform.h b/lib/ubsan/ubsan_platform.h
index 8ba253bfe..002ecf32a 100644
--- a/lib/ubsan/ubsan_platform.h
+++ b/lib/ubsan/ubsan_platform.h
@@ -18,6 +18,8 @@
(defined(__x86_64__) || defined(__i386__) || defined(__arm__) || \
defined(__aarch64__) || defined(__mips__) || defined(__powerpc64__))
# define CAN_SANITIZE_UB 1
+#elif defined(_WIN32)
+# define CAN_SANITIZE_UB 1
#else
# define CAN_SANITIZE_UB 0
#endif