[llvm-dev] How to build LLVM linked to libc++abi? (original) (raw)
ardi via llvm-dev llvm-dev at lists.llvm.org
Sun Sep 30 14:40:11 PDT 2018
- Previous message: [llvm-dev] Function Signature
- Next message: [llvm-dev] How to build LLVM linked to libc++abi?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi!
I sometimes build LLVM with a static libc++.a in MacOS, so that I use the LLVM libc++ instead of the system-wide one. However, when doing so, I always get link errors when building LLVM, because the build system links with libc++.a, but not with libc++abi.a and so there are quite a few missing symbols that the linker cannot find.
My workaround (which always seems to work) is to embed libc++abi inside of libc++ (with libtool, for example), but that's a hack for being in a hurry. BTW, note that I'm talking about building LLVM itself, not my programs (when you build your programs it doesn't hurt to add -lc++abi to your link line, but when building LLVM, how are you supposed to do it? I've searched for a cleaner solution to this, but couldn't find any.
Isn't there any LLVM build option for simply telling "hey! don't forget to add -lc++abi whenever you link to libc++" ?
Thanks!
ardi
- Previous message: [llvm-dev] Function Signature
- Next message: [llvm-dev] How to build LLVM linked to libc++abi?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]