Skip to content

Commit d6ab8c9

Browse files
committed
Cross-compile 32-bit Windows builds using 64-bit toolset
This should avoid memory limits when using 32-bit tools, which is relevant for libmongoc sources using the BSON DSL API. If you run into memory limits when you use the 32-bit tools, try the 64-bit tools.
1 parent bd8a78d commit d6ab8c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/windows/prepare-build/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ runs:
3333
- name: Enable Developer Command Prompt
3434
uses: ilammy/msvc-dev-cmd@v1
3535
with:
36-
arch: ${{ inputs.arch }}
36+
# Use 64-bit toolset to produce 32-bit binaries
37+
arch: ${{ inputs.arch == 'x86' && 'amd64_x86' || inputs.arch }}
3738
toolset: ${{ steps.setup-php.outputs.toolset }}
3839

3940
- name: phpize

0 commit comments

Comments
 (0)