clover: Add necessary flags to libclllvm_la_CXXFLAGS
authorTom Stellard <thomas.stellard@amd.com>
Tue, 24 Apr 2012 14:42:56 +0000 (10:42 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 1 Jun 2012 15:28:09 +0000 (11:28 -0400)
$(LLVM_CFLAGS) for LLVM defines
-DLIBCLC_PATH for libclc path
-DCLANG_RESOURCE_DIR for clang includes
$(DEFINES) for -DHAVE_LLVM

src/gallium/state_trackers/clover/Makefile.am

index da9f3bb92da2f7457b5456d749a0af3eec09b8c3..818ced622d4a38b7e76bd4d2adda44c1ec431568 100644 (file)
@@ -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