Skip to content

fix: Add RUSTFLAGS for Windows platform to prevent stack overflow issues#206

Merged
felix-schultz merged 2 commits intoalphafrom
dev
Aug 18, 2025
Merged

fix: Add RUSTFLAGS for Windows platform to prevent stack overflow issues#206
felix-schultz merged 2 commits intoalphafrom
dev

Conversation

@felix-schultz
Copy link
Copy Markdown
Member

This pull request introduces a platform-specific build configuration for Windows in the alpha release workflow. The main change is the addition of custom RUSTFLAGS to increase the stack size when building on Windows, which can help prevent stack overflow issues during compilation.

Build configuration update:

@felix-schultz felix-schultz requested a review from Copilot August 18, 2025 23:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds platform-specific build configuration to prevent stack overflow issues during Windows compilation in the alpha release workflow. The change sets custom RUSTFLAGS to increase stack size when building on Windows platforms.

  • Added conditional RUSTFLAGS environment variable for Windows builds with increased stack size configuration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
PUBLIC_SENTRY_ENDPOINT: ${{ secrets.PUBLIC_SENTRY_ENDPOINT }}
APPLE_SIGNING_IDENTITY: ${{ env.CERT_ID }}
RUSTFLAGS: ${{ matrix.platform == 'windows-latest' && '-C link-args=/STACK:8388608 -C link-args=-Wl,--stack,8388608' || '' }}
Copy link

Copilot AI Aug 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The RUSTFLAGS contains conflicting linker arguments. /STACK:8388608 is MSVC-style syntax while -Wl,--stack,8388608 is GNU-style syntax. On Windows, you should use only the MSVC syntax: -C link-args=/STACK:8388608 or only the GNU syntax if using GNU toolchain.

Suggested change
RUSTFLAGS: ${{ matrix.platform == 'windows-latest' && '-C link-args=/STACK:8388608 -C link-args=-Wl,--stack,8388608' || '' }}
RUSTFLAGS: ${{ matrix.platform == 'windows-latest' && '-C link-args=/STACK:8388608' || '' }}

Copilot uses AI. Check for mistakes.
@felix-schultz felix-schultz merged commit 9d80a38 into alpha Aug 18, 2025
1 of 5 checks passed
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.

2 participants