Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 386 support #54

Open
shaikh-shahid opened this issue Oct 6, 2023 · 1 comment
Open

Windows 386 support #54

shaikh-shahid opened this issue Oct 6, 2023 · 1 comment

Comments

@shaikh-shahid
Copy link

Hi Guys,
I am trying to build for windows and i see we don't support 386 arch. However, Goreleaser main module does support windows 386. I am confused and need some assistant on the same.

@alex-dna-tech
Copy link

It all depends on what operating system you want to run binary. The latest go version supporting Windows XP is v1.10 but goreleaser-cross starts from v1.17.6-rc0.
So the earliest version you can try is Windows 7 (go v1.20 last support).
You can try this:

  - id: helloworld-windows-386
    binary: helloworld
    main: ./cmd/helloworld
    goarch:
      - 386
    goos:
      - windows
    env:
      - CC=/llvm-mingw/bin/i686-w64-mingw32-gcc
      - CXX=/llvm-mingw/bin/i686-w64-mingw32-g++
    flags:
      - -trimpath
      - -buildmode=exe
     ```

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

No branches or pull requests

2 participants