Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
I couldn't find an equivalent to -exported_symbols_lists on GNU ld, but I'm all ears.
add_llvm_symbol_exports in the LLVM CMake files have a cross-platform way of doing export files: http://llvm-cs.pcc.me.uk/cmake/modules/AddLLVM.cmake#71
It compiles to exported_symbols_list on mac, creates a linker script on posix, and creates a def file on Windows.
Interesting, thanks for the heads up. It looks like it supports multiple calls with different export lists for the same target, too, right?
However, we'd have to either drop support for the standalone libc++ build or copy the function to libc++'s CMake modules. @EricWF Does this seem okay until we're fully on the monorepo and the standalone libc++ build is no more?
I don't know how well we build w/o an LLVM source dir at the moment, so I would be OK with requiring it. But let's not hold this change up.
This LGTM. Thanks for working on this.