clc: Add clang frontendhlsl module to fix build of microsoft-clc with llvm 16+

Cc: mesa-stable

Reviewed-by: Jesse Natalie  <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22741>
(cherry picked from commit a1b46b5e66)
This commit is contained in:
Lone_Wolf 2023-04-27 19:46:29 +02:00 committed by Dylan Baker
parent 6737012fbf
commit 9eb964ca1b
2 changed files with 5 additions and 4 deletions

View File

@ -8494,7 +8494,7 @@
"description": "clc: Add clang frontendhlsl module to fix build of microsoft-clc with llvm 16+",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View File

@ -1793,9 +1793,10 @@ if with_gallium_opencl
endif
if with_clc
llvm_modules += ['coverage', 'target', 'linker', 'irreader', 'option', 'libdriver', 'lto']
# all-targets is needed to support static linking LLVM build with multiple targets
# windowsdriver is needded with LLVM>=15, but we don't know what LLVM verrsion we are using yet
llvm_optional_modules += ['all-targets', 'windowsdriver']
# all-targets is needed to support static linking LLVM build with multiple targets.
# windowsdriver is needded with LLVM>=15 and frontendhlsl is needed with LLVM>=16,
# but we don't know what LLVM version we are using yet
llvm_optional_modules += ['all-targets', 'windowsdriver', 'frontendhlsl']
endif
draw_with_llvm = get_option('draw-use-llvm')
if draw_with_llvm