[patch] EXPORTED_SYMBOL_FILE support for cmake

Nico Weber thakis at chromium.org
Fri Dec 27 22:08:50 PST 2013


Oh, looks like lto had half an implementation for Windows :-) This removes
the Windows-specific code, since the general code should cover this (but
Windows is as I said completely untested).


On Fri, Dec 27, 2013 at 10:05 PM, Nico Weber <thakis at chromium.org> wrote:

> 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/50a23f78/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-cmake-export.patch
Type: application/octet-stream
Size: 8924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131227/50a23f78/attachment.obj>


More information about the llvm-commits mailing list