summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/Makefile
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2012-05-10 10:21:54 -0400
committerTom Stellard <[email protected]>2012-10-01 15:37:17 +0000
commit8d9778589f4b3a174e884338adb0fe1bdeca5eb7 (patch)
treee7543067e53ee4c063eadcbc0a0f735c2f5c1137 /src/gallium/drivers/radeon/Makefile
parent91ee7350014d6bd6af251d326553284420dba294 (diff)
radeon: Support LLVM 3.2
LLVM 3.2 and newer requires that the R600/SI backend be part of the LLVM tree.
Diffstat (limited to 'src/gallium/drivers/radeon/Makefile')
-rw-r--r--src/gallium/drivers/radeon/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/Makefile b/src/gallium/drivers/radeon/Makefile
index 7f1c61352e3..bcc2646dd5f 100644
--- a/src/gallium/drivers/radeon/Makefile
+++ b/src/gallium/drivers/radeon/Makefile
@@ -12,6 +12,12 @@ TBLGEN = $(LLVM_BINDIR)/llvm-tblgen
CXXFLAGS+= $(LLVM_CXXFLAGS)
+ifeq ($(LLVM_VERSION),3.1)
+ CPP_SOURCES += $(LLVM_CPP_SOURCES)
+else
+ CXXFLAGS+= -DEXTERNAL_LLVM
+endif
+
include ../../Makefile.template
CXXFLAGS := $(filter-out -DDEBUG, $(CXXFLAGS))