summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-04-24 10:42:56 -0400
committerTom Stellard <[email protected]>2012-06-01 11:28:09 -0400
commit5cc08efe8f708633271adc16208f020d79ddca46 (patch)
tree41ba2fbbdaa9461c4776f83f2c4fd1804c76f417 /src
parent7a6b5d42d8f47bee84a6ef387a0939cac4569fb4 (diff)
clover: Add necessary flags to libclllvm_la_CXXFLAGS
$(LLVM_CFLAGS) for LLVM defines -DLIBCLC_PATH for libclc path -DCLANG_RESOURCE_DIR for clang includes $(DEFINES) for -DHAVE_LLVM
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/clover/Makefile.am6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/clover/Makefile.am b/src/gallium/state_trackers/clover/Makefile.am
index da9f3bb92da..818ced622d4 100644
--- a/src/gallium/state_trackers/clover/Makefile.am
+++ b/src/gallium/state_trackers/clover/Makefile.am
@@ -20,7 +20,11 @@ libcltgsi_la_SOURCES = \
tgsi/compiler.cpp
libclllvm_la_CXXFLAGS = \
- -std=c++98
+ -std=c++98 \
+ $(LLVM_CPPFLAGS) \
+ $(DEFINES) \
+ -DLIBCLC_PATH=\"$(LIBCLC_PATH)/\" \
+ -DCLANG_RESOURCE_DIR=\"$(LLVM_LIBDIR)/clang/$(LLVM_VERSION)/\"
libclllvm_la_SOURCES = \
llvm/invocation.cpp