Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit 5681cac

Browse files
authored
Add -m32 to the 32-bit Python builds (#119)
This change is copied from the Azure setup in the main SciPy repo. It should fix the Pythran build issue.
1 parent 8f8368c commit 5681cac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

appveyor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ build_script:
164164
$PYTHON_ARCH = $env:PYTHON_ARCH
165165
If ($PYTHON_ARCH -eq 32) {
166166
$MINGW = $env:MINGW_32
167+
# 32-bit build requires careful adjustments
168+
# until Microsoft has a switch we can use
169+
# directly for i686 mingw
170+
$env:NPY_DISTUTILS_APPEND_FLAGS = 1
171+
$env:CFLAGS = "-m32"
172+
$env:LDFLAGS = "-m32"
173+
refreshenv
167174
} Else {
168175
$MINGW = $env:MINGW_64
169176
}

0 commit comments

Comments
 (0)