Install circumvented with NO_INSTALL

Dear all,
I am trying to compile and use the latest pre-release-2 of llvm-2.6 but now the default behaviour of the Makefile is to DO NOT install clang libraries. :frowning:

How can I enable the generation of clang libraries? I don't see any option in the ./configure script.

regards, Simone P.

Dear all,
I am trying to compile and use the latest pre-release-2 of llvm-2.6 but
now the default behaviour of the Makefile is to DO NOT install clang
libraries. :frowning:

We don't currently install Clang libraries (or headers) because, at the time that we wrote the makefiles, we didn't consider them stable enough for external tools to be built on them. However, the interfaces are probably "stable enough" now (by LLVM's definition of API stability), that it's reasonable to start installing Clang libraries + headers.

How can I enable the generation of clang libraries? I don't see any
option in the ./configure script.

You would need to remove the

  NO_INSTALL = 1

lines from the Clang library makefiles and add some makefile magic to install the Clang headers. (Plus, CMake

  - Doug

Hi,

does this make sense? It works for me.

I copied the install-local rule from llvm/Makefile.rules to
clang/Makefile because it's slightly different. Let me know if I can
change anything.

Cheers, Axel.

clang_install.diff.gz (862 Bytes)

The looks good, committed here:

  http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20091005/022113.html

However, it would be nice if we could avoid installing include/clang/CMakeLists.txt.

  - Doug

Hi Douglas,

    http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20091005/022113.html

Thanks!

However, it would be nice if we could avoid installing include/clang/CMakeLists.txt.

Oops :slight_smile: Attached.

Cheers, Axel.

clang_install_no_CMakeLists.diff (609 Bytes)

Hi Doug,

Yes, that's fine. Thanks!

  - Doug

Looks good, thanks.