how to build clang only

llvm is too big, I only need clang.
"clang-only" is in makefile , but I don't know how to use it.
the same question for "make update", how to only update clang?

wtj

llvm is too big, I only need clang.
"clang-only" is in makefile , but I don't know how to use it.
the same question for "make update", how to only update clang?

It isn't possible to build clang without llvm (I don't know what clang-only is used for).

snaroff

It isn't possible to build clang without llvm (I don't know what clang-
only is used for).
snaroff

I know that, but most of clang projects depends on only about 3~4 libs of llvm

wtj

llvm is too big, I only need clang.
"clang-only" is in makefile , but I don't know how to use it.

The clang front-end (clang-cc) pulls in essentially all of LLVM; if
you're willing to give up code generation, though, I suppose you could
ifdef that out and modify the makefiles to skip building llvm/lib and
llvm/tools/clang/lib/Frontend/Backend.cpp.

the same question for "make update", how to only update clang?

You can usually just run "svn update" in llvm/tools/clang. You can
also run "make" in llvm/tools/clang to rebuild clang without
rebuilding all of LLVM.

-Eli

make clang-only is how you use it.