summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/SConscript
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2016-11-22 17:01:35 -0800
committerVinson Lee <[email protected]>2016-11-24 13:37:33 -0800
commitf07da5aa5e2e6021f02104235429b670f6b468ec (patch)
treecb507050618b004789cc72595fa58ae3ee6d4851 /src/gallium/drivers/swr/SConscript
parenta794f0901719eb2689cbbabd5724fa89a2cfecd2 (diff)
scons: Recognize LLVM_CONFIG environment variable.
Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/SConscript')
-rw-r--r--src/gallium/drivers/swr/SConscript3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/SConscript b/src/gallium/drivers/swr/SConscript
index 0de51a79169..3f0517b36cf 100644
--- a/src/gallium/drivers/swr/SConscript
+++ b/src/gallium/drivers/swr/SConscript
@@ -31,7 +31,8 @@ if env['platform'] == 'windows':
# on windows there is no llvm-config, so LLVM is defined
llvm_includedir = os.path.join(os.environ['LLVM'], 'include')
else:
- llvm_includedir = env.backtick('llvm-config --includedir').rstrip()
+ llvm_config = os.environ.get('LLVM_CONFIG', 'llvm-config')
+ llvm_includedir = env.backtick('%s --includedir' % llvm_config).rstrip()
print "llvm include dir %s" % llvm_includedir
# the loader is included in the mesa lib itself