Commit 3e679219 authored by Vinson Lee's avatar Vinson Lee
Browse files

clc: Fix build with llvm-15.

opencl_c_h is defined only for llvm < 15.

Fixes: bcc2df48

 ("clc: speed up compilation by not relying on opencl-c.h")
Signed-off-by: Vinson Lee's avatarVinson Lee <>
Reviewed-by: Jesse Natalie's avatarJesse Natalie <>
Reviewed-by: Karol Herbst's avatarKarol Herbst <>
Part-of: <!16808>
parent 4b3afed3
Pipeline #604552 waiting for manual action with stages
......@@ -37,6 +37,11 @@ opencl_c_base_h = custom_target(
command : [prog_python, '@INPUT@', '@OUTPUT@', '-n', 'opencl_c_base_source'],
_libclc_sources = [opencl_c_base_h]
if dep_llvm.version().version_compare('< 15.0')
_libclc_sources += [opencl_c_h]
files_libclc = files(
......@@ -55,8 +60,7 @@ endif
_libclc = static_library(
sources: _libclc_sources,
include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, inc_compiler, inc_spirv],
cpp_args : _libclc_cpp_args,
dependencies: [idep_nir_headers, dep_clang, dep_llvm, dep_llvmspirvlib,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment