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

fix windows builds #6845

Merged
merged 1 commit into from
Apr 22, 2023
Merged

fix windows builds #6845

merged 1 commit into from
Apr 22, 2023

Conversation

pascalkuthe
Copy link
Member

@pascalkuthe pascalkuthe commented Apr 21, 2023

Closes #6844

CI doesn't seem super reliable because the caching strategy around grammars is a bit dodgy, so I fiddled around and after a while, I got cargo-xwin working locally and was able to debug the build failures. Could you confirm that this works for you @Chickenkeeper? I don't want to clear CI caches because that might make builds fail.

@pascalkuthe pascalkuthe added E-easy Call for participation: Experience needed to fix: Easy / not much A-packaging Area: Packaging and bundling labels Apr 21, 2023
Comment on lines -440 to +441
if cfg!(all(windows, target_env = "msvc")) {
if compiler.is_like_msvc() {
Copy link
Member Author

@pascalkuthe pascalkuthe Apr 21, 2023

Choose a reason for hiding this comment

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

this is unrelated but allows us to cross-compile helix (otherwise it uses the host environment here as that is the tsrgrt of the build script) and that didn't seem worth its own pr

@Chickenkeeper
Copy link
Contributor

@pascalkuthe This fix does work for me, it builds with no errors. Thanks for looking into it!

@archseer archseer merged commit b7c62e2 into helix-editor:master Apr 22, 2023
@pascalkuthe pascalkuthe deleted the windows_fix2 branch April 22, 2023 11:09
Triton171 pushed a commit to Triton171/helix that referenced this pull request Jun 18, 2023
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
smortime pushed a commit to smortime/helix that referenced this pull request Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-packaging Area: Packaging and bundling E-easy Call for participation: Experience needed to fix: Easy / not much
Projects
None yet
Development

Successfully merging this pull request may close these issues.

25 Grammars fail to build on Windows
3 participants