Skip to content

Commit d818694

Browse files
judemillekjellahl
authored andcommitted
Meson: Detect cl-like compilers
This fixes DLL linkage with clang-cl or intel-cl.
1 parent 058200d commit d818694

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

meson.build

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ project_source_root = meson.current_source_dir()
3939
project_build_root = meson.current_build_dir()
4040

4141
cpp_compiler = meson.get_compiler('cpp')
42-
is_msvc = cpp_compiler.get_id() == 'msvc'
42+
cpp_compiler_id = cpp_compiler.get_id()
43+
is_msvc = cpp_compiler_id == 'msvc' or cpp_compiler_id.endswith('-cl')
4344
python3 = find_program('python3', version: '>=3.7')
4445

4546
# MSVC: We currently do not support shared and static builds at the,

0 commit comments

Comments
 (0)