2023-01-20 10:41:00 +00:00
|
|
|
diff --git a/meson.build b/meson.build
|
2024-01-13 08:15:51 +00:00
|
|
|
index fbb0b29322d..b4825056449 100644
|
2023-01-20 10:41:00 +00:00
|
|
|
--- a/meson.build
|
|
|
|
+++ b/meson.build
|
2024-01-13 08:15:51 +00:00
|
|
|
@@ -1805,7 +1805,7 @@ endif
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
dep_clang = null_dep
|
|
|
|
if with_clc
|
|
|
|
- llvm_libdir = dep_llvm.get_variable(cmake : 'LLVM_LIBRARY_DIR', configtool: 'libdir')
|
|
|
|
+ llvm_libdir = get_option('clang-libdir')
|
|
|
|
|
|
|
|
dep_clang = cpp.find_library('clang-cpp', dirs : llvm_libdir, required : false)
|
|
|
|
|
2021-10-06 13:57:05 +00:00
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
2024-01-13 08:15:51 +00:00
|
|
|
index e885ba61a8a..591ed957c85 100644
|
2021-10-06 13:57:05 +00:00
|
|
|
--- a/meson_options.txt
|
|
|
|
+++ b/meson_options.txt
|
2024-01-13 08:15:51 +00:00
|
|
|
@@ -23,6 +23,12 @@ option(
|
|
|
|
description : 'the window system EGL assumes for EGL_DEFAULT_DISPLAY',
|
|
|
|
)
|
2021-10-06 13:57:05 +00:00
|
|
|
|
|
|
|
+option(
|
|
|
|
+ 'clang-libdir',
|
|
|
|
+ type : 'string',
|
|
|
|
+ value : '',
|
|
|
|
+ description : 'Locations to search for clang libraries.'
|
|
|
|
+)
|
|
|
|
option(
|
2024-01-13 08:15:51 +00:00
|
|
|
'android-stub',
|
|
|
|
type : 'boolean',
|
2021-10-06 13:57:05 +00:00
|
|
|
diff --git a/src/gallium/targets/opencl/meson.build b/src/gallium/targets/opencl/meson.build
|
2024-01-13 08:15:51 +00:00
|
|
|
index 7c14135898e..74dc6850603 100644
|
2021-10-06 13:57:05 +00:00
|
|
|
--- a/src/gallium/targets/opencl/meson.build
|
|
|
|
+++ b/src/gallium/targets/opencl/meson.build
|
2023-02-02 18:25:31 +00:00
|
|
|
@@ -39,7 +39,8 @@ if dep_llvm.version().version_compare('>=10.0.0')
|
|
|
|
polly_isl_dep = cpp.find_library('PollyISL', dirs : llvm_libdir, required : false)
|
2021-10-06 13:57:05 +00:00
|
|
|
endif
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
-dep_clang = cpp.find_library('clang-cpp', dirs : llvm_libdir, required : false)
|
2021-10-06 13:57:05 +00:00
|
|
|
+clang_libdir = get_option('clang-libdir')
|
2023-02-02 18:25:31 +00:00
|
|
|
+dep_clang = cpp.find_library('clang-cpp', dirs : clang_libdir, required : false)
|
2021-10-06 13:57:05 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
# meson will return clang-cpp from system dirs if it's not found in llvm_libdir
|
|
|
|
linker_rpath_arg = '-Wl,--rpath=@0@'.format(llvm_libdir)
|
|
|
|
@@ -123,7 +124,7 @@ if with_opencl_icd
|
2023-01-20 10:41:00 +00:00
|
|
|
configuration : _config,
|
2021-10-06 13:57:05 +00:00
|
|
|
input : 'mesa.icd.in',
|
|
|
|
output : 'mesa.icd',
|
2023-01-20 10:41:00 +00:00
|
|
|
- install : true,
|
|
|
|
+ install : false,
|
2024-01-13 08:15:51 +00:00
|
|
|
install_tag : 'runtime',
|
2023-01-20 10:41:00 +00:00
|
|
|
install_dir : join_paths(get_option('sysconfdir'), 'OpenCL', 'vendors'),
|
2021-10-06 13:57:05 +00:00
|
|
|
)
|
2023-01-20 10:41:00 +00:00
|
|
|
diff --git a/src/gallium/targets/rusticl/meson.build b/src/gallium/targets/rusticl/meson.build
|
2024-01-13 08:15:51 +00:00
|
|
|
index b2963fe6dfa..99d6d801b94 100644
|
2023-01-20 10:41:00 +00:00
|
|
|
--- a/src/gallium/targets/rusticl/meson.build
|
|
|
|
+++ b/src/gallium/targets/rusticl/meson.build
|
2024-01-13 08:15:51 +00:00
|
|
|
@@ -76,7 +76,7 @@ configure_file(
|
2023-01-20 10:41:00 +00:00
|
|
|
configuration : _config,
|
|
|
|
input : 'rusticl.icd.in',
|
|
|
|
output : 'rusticl.icd',
|
|
|
|
- install : true,
|
|
|
|
+ install : false,
|
2024-01-13 08:15:51 +00:00
|
|
|
install_tag : 'runtime',
|
2023-01-20 10:41:00 +00:00
|
|
|
install_dir : join_paths(get_option('sysconfdir'), 'OpenCL', 'vendors'),
|
|
|
|
)
|