[PATCH] D28791: [compiler-rt][crt] Simple crtbegin and crtend implementation

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 14:17:14 PST 2017

beanz added reviewers: brad.king, steveire.
beanz added a comment.

Looping in Brad King and Stephen Kelly for CMake advice.

Brad & Stephen, for context we need to do something very odd that is probably only ever done by low-level runtime projects. We need to install object files. My first thought for handling this was to create an object library and a normal install action, but that doesn't work because CMake provides the error:

  install TARGETS given OBJECT library "foo" which may not be installed.

My second thought to handle this was using the `install(FILES ...)` form with the `TARGET_OBJECTS` generator expression, but generator expressions aren't supported in that context. I suspect that what @phosek has written here is probably what we need to do with current versions of CMake, but any guidance from the CMake community would be greatly appreciated. Also, a better long-term solution would be appreciated too.




More information about the llvm-commits mailing list