diff options
author | Tom Stellard <[email protected]> | 2012-06-15 16:52:16 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-06-22 16:59:24 -0400 |
commit | ea76f0331011337cc4b7caac8f25947501a5aef9 (patch) | |
tree | 271475eae4324c6518788a48e99e0fbc953380d0 /src | |
parent | 82d25963a838cfebdeb9b080169979329ee850ea (diff) |
clover: Add --with-clang-libdir option and verify CLANG_RESOURCE_DIR
$CLANG_RESOURCE_DIR is the directory that contains all resources
needed by clang to compile programs. When clover uses clang to
compile kernels it needs to specify a resource dir, so that clang
can find its internal headers (e.g. stddef.h).
clang defines $CLANG_RESOURCE_DIR as $CLANG_LIBDIR/clang/$CLANG_VERSION
This patch adds the --with-clang-libdir option in order to accommodate
clang intalls to non-standard locations, and it also adds a check
to the configure script to verify that $CLANG_RESOURCE_DIR/include
contains the necessary header files.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/clover/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/Makefile.am b/src/gallium/state_trackers/clover/Makefile.am index 818ced622d4..5241a6d84a6 100644 --- a/src/gallium/state_trackers/clover/Makefile.am +++ b/src/gallium/state_trackers/clover/Makefile.am @@ -24,7 +24,7 @@ libclllvm_la_CXXFLAGS = \ $(LLVM_CPPFLAGS) \ $(DEFINES) \ -DLIBCLC_PATH=\"$(LIBCLC_PATH)/\" \ - -DCLANG_RESOURCE_DIR=\"$(LLVM_LIBDIR)/clang/$(LLVM_VERSION)/\" + -DCLANG_RESOURCE_DIR=\"$(CLANG_RESOURCE_DIR)\" libclllvm_la_SOURCES = \ llvm/invocation.cpp |