summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-02-12 16:31:09 +0100
committerThierry Reding <treding@nvidia.com>2019-08-23 18:18:27 +0200
commit2315b5fd804bd1da85a67a3996ed8e4d3597215b (patch)
tree6a142d5ede1f1e996da04bab477c58bcdc27b150
parenta81b6eb170eb3fa653194443e050eebd1e3927fc (diff)
cross
-rw-r--r--src/gallium/targets/opencl/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/targets/opencl/meson.build b/src/gallium/targets/opencl/meson.build
index 907cc74337dd..f59000bca32c 100644
--- a/src/gallium/targets/opencl/meson.build
+++ b/src/gallium/targets/opencl/meson.build
@@ -31,6 +31,10 @@ endif
llvm_libdir = dep_llvm.get_configtool_variable('libdir')
+if meson.is_cross_build()
+ llvm_libdir = meson.get_cross_property('root') + llvm_libdir
+endif
+
opencl_libname = with_opencl_icd ? 'MesaOpenCL' : 'OpenCL'
libopencl = shared_library(