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): fix build error on target i686-pc-windows-msvc #731

Merged

Conversation

lethean
Copy link
Contributor

@lethean lethean commented May 9, 2023

Fix error[E0793]: reference to packed field is unaligned.

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes
  • No

Checklist

  • This PR will resolve #___
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary
  • It can be built on all targets and pass CI/CD.

Other information

This PR fixes Tauri 0.13 build error on target i686-pc-windows-msvc.

Fix `error[E0793]: reference to packed field is unaligned`.
@lethean lethean requested a review from a team as a code owner May 9, 2023 07:19
Copy link
Member

@amrbashir amrbashir left a comment

Choose a reason for hiding this comment

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

Could you add a change file in .changes directory

@amrbashir
Copy link
Member

I hope you don't mind but your solution was panicking at runtime so I added a commit to fix that and added the change file as well.

@amrbashir amrbashir merged commit c608217 into tauri-apps:dev May 9, 2023
@github-actions github-actions bot mentioned this pull request May 9, 2023
@lethean lethean deleted the fix-build-error-on-i686-pc-windows-msvc branch May 10, 2023 00:40
amrbashir added a commit that referenced this pull request May 22, 2023
* fix(windows): fix build error on target i686-pc-windows-msvc

Fix `error[E0793]: reference to packed field is unaligned`.

* fix implementation

---------

Co-authored-by: amrbashir <[email protected]>
@github-actions github-actions bot mentioned this pull request May 22, 2023
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