diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-07-06 00:29:09 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-07-06 00:29:09 +0000 |
commit | ce02c1bc15168d2d7d0c9d7f213d147a62819dd8 (patch) | |
tree | def7e62605978666b6f74445074207eeccb8b76b /libcxxabi | |
parent | 52dfcd18d110d5724bb894bccdd3f02675d772ae (diff) | |
download | llvm-ce02c1bc15168d2d7d0c9d7f213d147a62819dd8.zip llvm-ce02c1bc15168d2d7d0c9d7f213d147a62819dd8.tar.gz llvm-ce02c1bc15168d2d7d0c9d7f213d147a62819dd8.tar.bz2 |
Fix incomplete type test on OS X; workaround weird DYLD_LIBRARY_PATH behavior
llvm-svn: 307230
Diffstat (limited to 'libcxxabi')
-rw-r--r-- | libcxxabi/test/incomplete_type.sh.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcxxabi/test/incomplete_type.sh.cpp b/libcxxabi/test/incomplete_type.sh.cpp index 86ff7da..6062dc6 100644 --- a/libcxxabi/test/incomplete_type.sh.cpp +++ b/libcxxabi/test/incomplete_type.sh.cpp @@ -16,9 +16,13 @@ // UNSUPPORTED: libcxxabi-no-exceptions +// NOTE: Pass -lc++abi explicitly and before -lc++ so that -lc++ doesn't drag +// in the system libc++abi installation on OS X. (DYLD_LIBRARY_PATH is ignored +// for shell tests because of Apple security features). + // RUN: %cxx %flags %compile_flags -c %s -o %t.one.o // RUN: %cxx %flags %compile_flags -c %s -o %t.two.o -DTU_ONE -// RUN: %cxx %flags %t.one.o %t.two.o %link_flags -o %t.exe +// RUN: %cxx %flags %t.one.o %t.two.o -lc++abi %link_flags -o %t.exe // RUN: %t.exe #include <stdio.h> |