[cfe-dev] [PATCH 0/2] Introduce --with-clang-srcdir, to build out-of-tree clang

Eric Christopher echristo at apple.com
Fri Oct 14 16:28:40 PDT 2011


On Oct 13, 2011, at 8:58 PM, NAKAMURA Takumi wrote:

> As same as cmake, clang can be built with out-of-tree clang (for msys).
> 
> NAKAMURA Takumi (2):
>  test/Makefile: Inspect $(PROJ_OBJ_ROOT)/tools/clang/Makefile instead
>    of $(PROJ_SRC_ROOT)/tools/clang for "check-all".
>  autoconf: Introduce --with-clang-srcdir, to build out-of-tree clang
>    in tools/clang.
> 
> Makefile.config.in    |   10 +++++++++-
> Makefile.rules        |   14 ++++++++++----
> autoconf/configure.ac |   11 +++++++++++
> test/Makefile         |    2 +-
> 4 files changed, 31 insertions(+), 6 deletions(-)

This seems like a bit of a hack. What about changing the parallel directories inside the tools directory to use the passed in autoconf value to specify a clang directory and add that?

Or since the issue is checking out one directory into another just have your build process copy clang into the directory?

-eric



More information about the cfe-dev mailing list