Skip to content

Conversation

@starius
Copy link
Contributor

@starius starius commented Dec 31, 2024

With these two fixes, I managed to build simplegrep.exe for Windows using i686-w64-mingw32 (cross-compilation from Linux).

Argument len is size_t, not ulong. Fix the following error on i686-w64-mingw32:
compile_v52.go:40:73: cannot use _Ctype_ulong(len(expression)) (value of type
_Ctype_ulong) as type _Ctype_uint in variable declaration
Use unsafe.Slice instead of using a type of array of size 1 << 30.

Fix error on i686-w64-mingw32:
compile.go:407:30: type [1073741824]*_Ctype_char larger than address space
@shaybarak11
Copy link

@flier please review and approve.
It works for me.
thx

@flier flier merged commit 711ee1a into flier:master Oct 24, 2025
24 of 27 checks passed
@starius starius deleted the fixes-for-mxe branch October 24, 2025 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants