Hi, is there an option to build LLVM's libs (and maybe clangs, but that's for later :-) as shared libraries? It's not --enable-shared :-) If it doesn't exist: is there any interest to have it? It would reduce my build time considerably... Cheers, Axel.
Axel Naumann <Axel.Naumann at cern.ch> writes:> is there an option to build LLVM's libs (and maybe clangs, but that's > for later :-) as shared libraries? It's not --enable-shared :-) If it > doesn't exist: is there any interest to have it? It would reduce my > build time considerably...With cmake it is BUILD_SHARED_LIBS http://www.llvm.org/docs/CMake.html The doc says it is not recommended because it increases process startup time, which is very noticeable if you run your compiler lots of times (i.e. a test suite). -- Óscar
Hi Óscar, On 2009-10-08 00:49, Óscar Fuentes wrote:> Axel Naumann <Axel.Naumann at cern.ch> writes: >> is there an option to build LLVM's libs (and maybe clangs, but that's >> for later :-) as shared libraries? > > With cmake it is BUILD_SHARED_LIBS > > http://www.llvm.org/docs/CMake.htmlGreat! So I must use CMake instead of configure / make to get shared libs?> The doc says it is not recommended because it increases process startup > time, which is very noticeable if you run your compiler lots of times > (i.e. a test suite).I'm not, I'm *building* my compiler tons of times ;-) Thanks for your quick reply! Cheers, Axel.