Go to file
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
clang [mips] Add test for the dynamic linker when using the mips64el-fedora-linux triple. 2016-05-16 11:53:51 +00:00
clang-tools-extra [clang-tidy] Cleanups utils files 2016-05-16 14:34:20 +00:00
compiler-rt [compiler-rt] Fix multi-configuration output paths 2016-05-16 14:58:07 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Add erf ported from amd-builtins 2016-05-06 18:02:30 +00:00
libcxx Disable LIBCXX_ENABLE_ABI_LINKER_SCRIPT for static library builds. 2016-05-14 23:58:11 +00:00
libcxxabi libc++abi: make __cxa_call_unexpected visible 2016-05-11 23:56:37 +00:00
libunwind unwind: remove last instance of -Wexpansion-to-defined 2016-04-26 01:11:29 +00:00
lld Sort includes, and don't look into system headers. 2016-05-15 19:43:02 +00:00
lldb Bump up adb timeout more 2016-05-16 11:41:36 +00:00
llgo [llgo] llgoi: separate evaluation from printing 2016-04-25 01:18:20 +00:00
llvm [llc] New diagnostic handler 2016-05-16 14:28:02 +00:00
openmp Clean all the mess around KMP_USE_FUTEX and kmp_lock.h 2016-05-16 09:44:11 +00:00
polly Check late for profitability 2016-05-12 20:21:50 +00:00