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 | 065ab9eca7945642919f03560c1e68ac06e70052 (patch) | |
tree | 16101470e5f739517540d62409c25cb2fc74a1a1 /test/incomplete_type.sh.cpp | |
parent | 3d356fdcaba603a67f0855d9d88392efac51afe0 (diff) |
Fix incomplete type test on OS X; workaround weird DYLD_LIBRARY_PATH behavior
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@307230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/incomplete_type.sh.cpp')
-rw-r--r-- | test/incomplete_type.sh.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/incomplete_type.sh.cpp b/test/incomplete_type.sh.cpp index 86ff7da..6062dc6 100644 --- a/test/incomplete_type.sh.cpp +++ b/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> |