Skip to content

Commit fe1eb11

Browse files
committed
TST: fix test package default options to allow compilation with MSVC
Meson by default derives the Microsoft runtime library to use from the build type, see the documentation for the b_vscrt base option https://mesonbuild.com/Builtin-options.html#base-options The default build type is debug, which causes a debug version og the runtime library to be used. This in turn causes the linker to look for debug version of the linked DLLs. Python does not distribute a debug version of the pythonXY.dll thus the linking fails. Set the build type for the test package to release to fix the issue.
1 parent bf766e4 commit fe1eb11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/packages/detect-compiler/meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ project(
66
'detect-compiler',
77
'c',
88
version: '1.0',
9+
default_options: [
10+
'buildtype=release'
11+
]
912
)
1013

1114
py = import('python').find_installation()

0 commit comments

Comments
 (0)