summaryrefslogtreecommitdiff
path: root/configs/linux-llvm
blob: 8e9b40886150e3106a7122e309f402514333a8dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Configuration for debugging on Linux

include $(TOP)/configs/linux

CONFIG_NAME = linux-debug

OPT_FLAGS = -g -ansi -pedantic
DEFINES += -DDEBUG -DDEBUG_MATH

LLVM_VERSION := $(shell llvm-config --version)

ifeq ($(LLVM_VERSION),)
  $(warning Could not find LLVM! Make Sure 'llvm-config' is in the path)
  MESA_LLVM=0
else
  MESA_LLVM=1
  $(info Using LLVM version: $(LLVM_VERSION))
endif

ifeq ($(MESA_LLVM),1)
#  LLVM_CFLAGS=`llvm-config --cflags` -DMESA_LLVM=1
  LLVM_CFLAGS=-DMESA_LLVM=1
  LLVM_CXXFLAGS=`llvm-config --cxxflags` -DMESA_LLVM=1 -Wno-long-long
  LLVM_LDFLAGS=`llvm-config --ldflags`
  LLVM_LIBS=`llvm-config --libs`
else
  LLVM_CFLAGS=
  LLVM_CXXFLAGS=
endif

GL_LIB_DEPS = $(LLVM_LDFLAGS) $(LLVM_LIBS) $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread