[cfe-dev] [PATCH 0/2][CMake] Availability of out-of-source-tree clang from llvm
annulen at yandex.ru
Fri Oct 14 01:10:40 PDT 2011
14.10.2011, 03:01, "NAKAMURA Takumi" <geek4civic at gmail.com>:
> On Windows, I have met problems to locate "clang" repository onto tools/clang,
> Especially, it would be better "clang" would not be located in
> llvm/tools in some opportunities.
> Yes, I am constructing synthesized meta-repository including both llvm
> a> nd clang.
> Symlink-like features would not work better with cmake, GNU make etc.
> Then, I propose an easier way to be available to refer to
> out-of-source-tree clang.
> 1) By default, tools/clang is assumed.
> 2) To set LLVM_CLANG_SOURCE_DIR, you can specify clang source tree
> wherever you like. (It points tools/clang by default)
> 3) To set LLVM_CLANG_SOURCE_DIR as empty or invalid, you can suppress
> building clang. Then, LLVM_BUILD_CLANG could be deprecated.
> X) Wherever clang source tree is, clang is built under tools/clang.
Doesn't you consider making possible to build Clang from it's own tree, i.e.:
1) Build LLVM with no tools/clang
2) Checkout Clang into arbitrary place
3) Run CMake from Clang dir with setting LLVM_SOURCE_DIR
More information about the cfe-dev