gallivm: Explicitly specify the LLVM components we need.
This commit is contained in:
@@ -133,7 +133,7 @@ if dri:
|
|||||||
# LLVM
|
# LLVM
|
||||||
if llvm:
|
if llvm:
|
||||||
# See also http://www.scons.org/wiki/UsingPkgConfig
|
# See also http://www.scons.org/wiki/UsingPkgConfig
|
||||||
env.ParseConfig('llvm-config --cflags --ldflags --libs')
|
env.ParseConfig('llvm-config --cflags --ldflags --libs backend bitreader engine ipo')
|
||||||
env.Append(CPPDEFINES = ['MESA_LLVM'])
|
env.Append(CPPDEFINES = ['MESA_LLVM'])
|
||||||
# Force C++ linkage
|
# Force C++ linkage
|
||||||
env['LINK'] = env['CXX']
|
env['LINK'] = env['CXX']
|
||||||
|
@@ -22,9 +22,9 @@ endif
|
|||||||
|
|
||||||
ifeq ($(MESA_LLVM),1)
|
ifeq ($(MESA_LLVM),1)
|
||||||
# LLVM_CFLAGS=`llvm-config --cflags`
|
# LLVM_CFLAGS=`llvm-config --cflags`
|
||||||
LLVM_CXXFLAGS=`llvm-config --cxxflags` -Wno-long-long
|
LLVM_CXXFLAGS=`llvm-config --cxxflags backend bitreader engine ipo` -Wno-long-long
|
||||||
LLVM_LDFLAGS=`llvm-config --ldflags`
|
LLVM_LDFLAGS=`llvm-config --ldflags backend bitreader engine ipo`
|
||||||
LLVM_LIBS=`llvm-config --libs`
|
LLVM_LIBS=`llvm-config --libs backend bitreader engine ipo`
|
||||||
MKLIB_OPTIONS=-cplusplus
|
MKLIB_OPTIONS=-cplusplus
|
||||||
else
|
else
|
||||||
LLVM_CFLAGS=
|
LLVM_CFLAGS=
|
||||||
|
Reference in New Issue
Block a user