Skip to content

Commit 1ec36d6

Browse files
committed
--config RELEASE for tlfloat
1 parent dde614b commit 1ec36d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

quaddtype/subprojects/packagefiles/sleef/meson.build

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ sleef_install_dir = 'sleef_install'
88

99
# turning off parallel build in windows
1010
parallel_flag = ['--parallel']
11+
build_config_flag = []
1112
if host_machine.system() == 'windows'
1213
parallel_flag = []
14+
# On Windows with MSVC (multi-config generator), must specify --config Release
15+
# to match the main project's release build and avoid runtime library mismatches
16+
build_config_flag = ['--config', 'Release']
1317
endif
1418

1519
# For building sleef with TSan, delete the sleef subproject and follow the README instructions to build sleef externally.
@@ -37,7 +41,7 @@ if sleef_configure.returncode() != 0
3741
endif
3842

3943
sleef_build_target = custom_target('sleef_build',
40-
command: [cmake, '--build', meson.current_build_dir() / sleef_build_dir, '--target', 'install'] + parallel_flag,
44+
command: [cmake, '--build', meson.current_build_dir() / sleef_build_dir, '--target', 'install'] + build_config_flag + parallel_flag,
4145
output: 'sleef_built.stamp',
4246
console: true,
4347
build_always_stale: true,

0 commit comments

Comments
 (0)