Module: Mesa Branch: staging/20.0 Commit: 9387009b09249d3997221736db2e9b3d40119dfb URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9387009b09249d3997221736db2e9b3d40119dfb
Author: Jan Palus <[email protected]> Date: Fri Apr 10 18:00:40 2020 +0200 targets/opencl: fix build against LLVM>=10 with Polly support see https://bugs.llvm.org/show_bug.cgi?id=44870 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4511> (cherry picked from commit a1b69d101a60974c105df8519890e3f90fd44911) --- .pick_status.json | 2 +- src/gallium/targets/opencl/meson.build | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index 7cc38c28f5a..717288e35a5 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -472,7 +472,7 @@ "description": "targets/opencl: fix build against LLVM>=10 with Polly support", "nominated": false, "nomination_type": null, - "resolution": 4, + "resolution": 1, "master_sha": null, "because_sha": null }, diff --git a/src/gallium/targets/opencl/meson.build b/src/gallium/targets/opencl/meson.build index 6ce01025d0b..180dd798381 100644 --- a/src/gallium/targets/opencl/meson.build +++ b/src/gallium/targets/opencl/meson.build @@ -33,6 +33,13 @@ llvm_libdir = dep_llvm.get_configtool_variable('libdir') opencl_libname = with_opencl_icd ? 'MesaOpenCL' : 'OpenCL' +polly_dep = null_dep +polly_isl_dep = null_dep +if dep_llvm.version().version_compare('>=10.0.0') + polly_dep = cpp.find_library('Polly', dirs : llvm_libdir, required : false) + polly_isl_dep = cpp.find_library('PollyISL', dirs : llvm_libdir, required : false) +endif + dep_clang = cpp.find_library('clang-cpp', dirs : llvm_libdir, required : false) if not dep_clang.found() dep_clang = [ @@ -49,6 +56,7 @@ if not dep_clang.found() cpp.find_library('clangEdit', dirs : llvm_libdir), cpp.find_library('clangLex', dirs : llvm_libdir), cpp.find_library('clangBasic', dirs : llvm_libdir), + polly_dep, polly_isl_dep, ] endif _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
