diff options
author | Etienne Bergeron <etienneb@google.com> | 2016-05-16 14:58:07 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2016-05-16 14:58:07 +0000 |
commit | 3df287923275340cb16cf597b93353a4910e3331 (patch) | |
tree | 329ab5d1edbc305b768a103c6910a5ea6d86a63e /lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp | |
parent | 8d73de9eac0e7bbfc913a0243b087925d6fe3d37 (diff) | |
download | bcm5719-llvm-3df287923275340cb16cf597b93353a4910e3331.tar.gz bcm5719-llvm-3df287923275340cb16cf597b93353a4910e3331.zip |
[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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp')
0 files changed, 0 insertions, 0 deletions