diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-03-04 08:32:43 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-03-04 08:32:43 +0000 |
commit | a79696d9bf2557c2a18204b24812e3367cc9fc0e (patch) | |
tree | fdc1315df6551cd41acc0edf190f6c23934a1145 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 72f17afd483f6d8c9e451e96d7f46fe43f74ecb3 (diff) | |
download | llvm-a79696d9bf2557c2a18204b24812e3367cc9fc0e.zip llvm-a79696d9bf2557c2a18204b24812e3367cc9fc0e.tar.gz llvm-a79696d9bf2557c2a18204b24812e3367cc9fc0e.tar.bz2 |
[CMake] Port add_sanitizer_rt_symbols to CMake 3.0
Patch by Brad King.
Our add_sanitizer_rt_symbols macro reads the LOCATION property of a
library to compute the location of the "lib<name>.a.syms" file to
generate next to the corresponding "lib<name>.a" library file. CMake
3.0 introduces policy CMP0026 to disallow reading of the LOCATION target
property from non-imported targets in favor of the more powerful
$<TARGET_FILE> generator expression.
Teach add_sanitizer_rt_symbols to use the $<TARGET_FILE> generator
expression to compute the location of the symbols file to generate
with a custom command. CMake 3.0 also adds support for generator
expressions to install(FILES) so use it when available to simplify
installation of the symbols file of the proper configuration.
llvm-svn: 202797
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions