clc: Add clang frontendhlsl module to fix build of microsoft-clc with llvm 16+
authorLone_Wolf <lone_wolf@klaas-de-kat.nl>
Thu, 27 Apr 2023 17:46:29 +0000 (19:46 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 27 Apr 2023 23:06:42 +0000 (23:06 +0000)
Cc: mesa-stable
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22741>

meson.build

index 2b6fb31..37c3232 100644 (file)
@@ -1624,9 +1624,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