llvm-project/compiler-rt/lib/asan/tests
Etienne Bergeron 3df2879232 [compiler-rt] Fix multi-configuration output paths
Summary:
When using a multi-configuration build (i.e. MSVC) the output path where
libraries are dropped is incorrect.

Example:
```
C:\src\llvm\examples>d:\src\llvm\build\Release\bin\clang-cl.exe -fsanitize=address test.cc
LINK : fatal error LNK1181: cannot open input file 'd:\src\llvm\build\Release\bin\..\lib\clang\3.9.0\lib\windows\clang_rt.asan-i386.lib'
```

The dropped executable path contains the configuration 'Release':
```
'd:\src\llvm\build\Release\bin\..\lib\clang\3.9.0\lib\windows\Release\clang_rt.asan-i386.lib'
```


The variable 'RUNTIME_OUTPUT_DIRECTORY' is used to specify the output directory.
But CMAKE is appending the current configuration (i.e. Debug, Release).

see: https://cmake.org/cmake/help/v3.0/prop_tgt/RUNTIME_OUTPUT_DIRECTORY.html
```
"Multi-configuration generators (VS, Xcode) append a per-configuration subdirectory to the specified directory."
```

To avoid this problem, the configuration specific variable must be set:
'RUNTIME_OUTPUT_DIRECTORY_DEBUG', 'RUNTIME_OUTPUT_DIRECTORY_RELEASE', and so on.

Reviewers: ddunbar, chapuni, rnk

Subscribers: kubabrecka, llvm-commits

Differential Revision: http://reviews.llvm.org/D20261

llvm-svn: 269658
2016-05-16 14:58:07 +00:00
..
CMakeLists.txt [compiler-rt] Fix multi-configuration output paths 2016-05-16 14:58:07 +00:00
asan_asm_test.cc [asan] Fix >80 chars line. 2015-09-04 21:19:48 +00:00
asan_benchmarks_test.cc [ASan] Fix unit test headers. Add an option to change substitute asan_test_config.h file 2012-09-28 12:24:23 +00:00
asan_exceptions_test.cc
asan_fake_stack_test.cc [ASan tests] Don't run FakeStack.CreateDestroy on Windows as it OOMs 2014-05-12 14:49:17 +00:00
asan_globals_test.cc [asan] run-time tests for adaptive redzones 2013-01-24 10:36:11 +00:00
asan_interface_test.cc [Sanitizers] Unify the semantics and usage of "exitcode" runtime flag across all sanitizers. 2015-08-21 20:49:37 +00:00
asan_mac_test.cc [ASan] Fix the links to bugs and wikipages. 2015-12-04 17:37:40 +00:00
asan_mac_test.h
asan_mac_test_helpers.mm [ASan] Fix GCD tests by spinning forever in the main thread. 2013-09-24 12:42:25 +00:00
asan_mem_test.cc [asan] remove UB (comparison of two unrelated pointers) from a test 2014-02-26 13:53:23 +00:00
asan_noinst_test.cc [sanitizer] On OS X, verify that interceptors work and abort if not, take 2 2016-03-17 08:37:25 +00:00
asan_oob_test.cc [asan] fix a test following r209508 2014-05-23 11:52:38 +00:00
asan_racy_double_free_test.cc Reapply r201910. MSVC gets __func__ defined explicitly, even though it 2014-02-26 20:33:22 +00:00
asan_str_test.cc [tests] Portability fixup for r261713. 2016-02-24 01:28:51 +00:00
asan_test.cc [ASan] Add shadow offset for SystemZ. 2016-04-30 10:02:12 +00:00
asan_test.ignore [ASan] add comment to blacklist file to test behavior introduced in r166283 2012-10-19 15:26:48 +00:00
asan_test_config.h [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of gtest.h conditional 2014-05-13 13:25:12 +00:00
asan_test_main.cc [sanitizer] On OS X, verify that interceptors work and abort if not, take 2 2016-03-17 08:37:25 +00:00
asan_test_utils.h [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of gtest.h conditional 2014-05-13 13:25:12 +00:00