Module: Mesa
Branch: main
Commit: 25e2c4d7841648c80ba973d1ed89d2150aca8f71
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=25e2c4d7841648c80ba973d1ed89d2150aca8f71

Author: pal1000 <[email protected]>
Date:   Tue Aug  2 16:50:29 2022 +0300

Microsoft clc: strip lib prefix
Otherwise OpenCLon12 ICD can't load it

Ref: https://github.com/microsoft/OpenCLOn12/search?q=clon12compiler

Reviewed-by: Jesse Natalie <[email protected]>
Reviewed-by: Yonggang Luo <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17856>

---

 src/microsoft/clc/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/microsoft/clc/meson.build b/src/microsoft/clc/meson.build
index 966c17b43f3..a472192c853 100644
--- a/src/microsoft/clc/meson.build
+++ b/src/microsoft/clc/meson.build
@@ -30,7 +30,8 @@ libclc_compiler = shared_library(
   vs_module_defs : 'clon12compiler.def',
   include_directories : [inc_include, inc_src, inc_mapi, inc_mesa, 
inc_compiler, inc_gallium, inc_spirv],
   dependencies: [idep_clc, idep_nir_headers, dep_version, idep_mesautil,
-                 idep_libdxil_compiler, idep_nir]
+                 idep_libdxil_compiler, idep_nir],
+  name_prefix : ''  # otherwise mingw will create libclon12compiler.dll
 )
 
 if dep_dxheaders.found()

Reply via email to