Skip to content

Commit e0e04df

Browse files
committed
BLD: Include MSVCP140 runtime statically
This may prevent conflicts with other wheels that use the runtime at a different version.
1 parent 2811043 commit e0e04df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ jobs:
100100
CIBW_AFTER_BUILD: >-
101101
twine check {wheel} &&
102102
python {package}/ci/check_wheel_licenses.py {wheel}
103-
CIBW_CONFIG_SETTINGS: setup-args="--vsenv"
103+
CIBW_CONFIG_SETTINGS_WINDOWS: >-
104+
setup-args="--vsenv"
105+
setup-args="-Db_vscrt=mt"
106+
setup-args="-Dcpp_link_args=['ucrt.lib','vcruntime.lib','/nodefaultlib:libucrt.lib','/nodefaultlib:libvcruntime.lib']"
104107
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
105108
CIBW_SKIP: "*-musllinux_aarch64"
106109
CIBW_TEST_COMMAND: >-

0 commit comments

Comments
 (0)