diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-15 20:24:12 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-09-15 20:24:12 +0000 |
commit | d13d61fdb4166236c77893e08a5c60c0bfa0dc0c (patch) | |
tree | a713022ae86723e19954df563192b66bf60e662a /compiler-rt/test/cfi | |
parent | b5ab895e2a62486d29e3bc564cc3f2edde3ff719 (diff) | |
download | llvm-d13d61fdb4166236c77893e08a5c60c0bfa0dc0c.tar.gz |
ubsan: Unbreak ubsan_cxx runtime library on Windows.
This was originally broken by r258744 which introduced a weak reference
from ubsan to ubsan_cxx. This reference does not work directly on
Windows because COFF has no direct concept of weak symbols. The fix is
to use /alternatename to create a weak external reference to ubsan_cxx.
Also fix the definition (and the name, so that we drop cached values)
of the cmake flag that controls whether to build ubsan_cxx. Now the
user-controllable flag is always on, and we turn it off internally
depending on whether we support building it.
Differential Revision: https://reviews.llvm.org/D37882
llvm-svn: 313391
Diffstat (limited to 'compiler-rt/test/cfi')
-rw-r--r-- | compiler-rt/test/cfi/target_uninstrumented.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/test/cfi/target_uninstrumented.cpp b/compiler-rt/test/cfi/target_uninstrumented.cpp index 2ec2b5bbc978..bf20f58e2914 100644 --- a/compiler-rt/test/cfi/target_uninstrumented.cpp +++ b/compiler-rt/test/cfi/target_uninstrumented.cpp @@ -3,6 +3,7 @@ // RUN: %t 2>&1 | FileCheck %s // REQUIRES: cxxabi +// UNSUPPORTED: win32 #include <stdio.h> #include <string.h> |