diff options
author | Chris Bieneman <beanz@apple.com> | 2015-12-03 22:52:22 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-12-03 22:52:22 +0000 |
commit | 1d7a2cf94c50101f69cab34f9f3a5b76032dac78 (patch) | |
tree | 343fda38d9de836120d314f7c2d62d095ca5b7db | |
parent | ccabd0e3966532fecfb1b3033a44c68021e54240 (diff) | |
download | bcm5719-llvm-1d7a2cf94c50101f69cab34f9f3a5b76032dac78.tar.gz bcm5719-llvm-1d7a2cf94c50101f69cab34f9f3a5b76032dac78.zip |
[CMake] set_target_properties doesn't append link flags
This fixes a bug I introduced in r254643.
llvm-svn: 254658
-rw-r--r-- | compiler-rt/cmake/Modules/AddCompilerRT.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/cmake/Modules/AddCompilerRT.cmake b/compiler-rt/cmake/Modules/AddCompilerRT.cmake index 5db7eb04800..1314d33c8f6 100644 --- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake +++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake @@ -325,7 +325,7 @@ function(rt_externalize_debuginfo name) OR CMAKE_CXX_FLAGS_${uppercase_CMAKE_BUILD_TYPE} MATCHES "-flto") set(lto_object ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${name}-lto.o) - set_target_properties(${name} PROPERTIES + set_property(TARGET ${name} APPEND_STRING PROPERTY LINK_FLAGS "-Wl,-object_path_lto -Wl,${lto_object}") endif() add_custom_command(TARGET ${name} POST_BUILD |