[PATCH] Fix clang out-of-tree build with already installed llvm since r183989.
Johannes Obermayr
johannesobermayr at gmx.de
Tue Sep 10 14:45:05 PDT 2013
ping.
Am Donnerstag, 20. Juni 2013, 22:56:42 schrieb Johannes Obermayr:
> ---
> This is required to find "llvm/Option/OptParser.td" in e. g. /usr/include on my
> system.
> ---
> cmake/modules/TableGen.cmake | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
> index e3bdd9c..9490d7a 100644
> --- a/cmake/modules/TableGen.cmake
> +++ b/cmake/modules/TableGen.cmake
> @@ -16,7 +16,7 @@ macro(tablegen project ofn)
> # Generate tablegen output in a temporary file.
> COMMAND ${${project}_TABLEGEN_EXE} ${ARGN} -I ${CMAKE_CURRENT_SOURCE_DIR}
> -I ${LLVM_MAIN_SRC_DIR}/lib/Target -I ${LLVM_MAIN_INCLUDE_DIR}
> - ${LLVM_TARGET_DEFINITIONS_ABSOLUTE}
> + -I ${LLVM_INSTALL_PREFIX}/include ${LLVM_TARGET_DEFINITIONS_ABSOLUTE}
> -o ${CMAKE_CURRENT_BINARY_DIR}/${ofn}.tmp
> # The file in LLVM_TARGET_DEFINITIONS may be not in the current
> # directory and local_tds may not contain it, so we must
>
More information about the llvm-commits
mailing list