[patch] EXPORTED_SYMBOL_FILE support for cmake

Nico Weber thakis at chromium.org
Fri Dec 27 22:05:58 PST 2013


Hi,

while trying to port the dead code stripping patch (r198087) to cmake, I
noticed that the cmake build has no real support for EXPORTED_SYMBOL_FILE –
libclang in clang had half an implementation for Darwin with a FIXME for
other platforms, tools/gold had half an implementation for BFD ld…

This patch tries to add real support – CMakeLists.txt just need to set
LLVM_EXPORTED_SYMBOL_FILE and things should Just Work.

I've only tested this on OS X, and I don't have a ton of cmake experience.
Please review, and / or patch this in and build and let me know how it goes
(especially on linux or windows).

Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131227/557c4363/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-cmake-export.patch
Type: application/octet-stream
Size: 8010 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131227/557c4363/attachment.obj>


More information about the llvm-commits mailing list