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

chore: adapt rust build to SU15 #8627

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Saschl
Copy link
Member

@Saschl Saschl commented Apr 17, 2024

Fixes #[issue_no]

Summary of Changes

Updates rust build to align with SU15 changes.

Instead of using the provided libc of the rust target we link against the MSFS_SDK version as it contains some differences to the official version. Visible changes are the availability of the memory debug window in the sim and the removal of warnings in the console.

Only to be merged after dev-env update and SU15 release.

Screenshots (if necessary)

References

https://github.com/rust-lang/rust/blob/00ed4edb44ccc76d8cc992ef9f9f4634ea6d0e82/compiler/rustc_target/src/spec/targets/wasm32_wasip1.rs#L29

https://doc.rust-lang.org/rustc/codegen-options/index.html#link-self-contained
https://doc.rust-lang.org/reference/linkage.html#static-and-dynamic-c-runtimes

Additional context

Discord username (if different from GitHub):

Testing instructions

How to download the PR for QA

Every new commit to this PR will cause new A32NX and A380X artifacts to be created, built, and uploaded.

  1. Make sure you are signed in to GitHub
  2. Click on the Checks tab on the PR
  3. On the left side, find and click on the PR Build tab
  4. Click on either flybywire-aircraft-a320-neo or flybywire-aircraft-a380-842 download link at the bottom of the page

@github-actions github-actions bot added this to 🟡 Code Review: Ready for Review in Quality Assurance Apr 17, 2024
@Saschl Saschl changed the title chore: update rust and adapt to SU15 chore: adapt rust build to SU15 Apr 17, 2024
@2hwk 2hwk added SU15 QA Tier 1 Not Ready For Testing Not ready for testing as still being discussed or developed. and removed QA Tier 1 labels Apr 20, 2024
Quality Assurance automation moved this from 🟡 Code Review: Ready for Review to 🟣 QA Team Review: Ready to Test Apr 20, 2024
@2hwk 2hwk moved this from 🟣 QA Team Review: Ready to Test to ⌛ Awaiting Actions in Quality Assurance Apr 20, 2024
Does not work with standard llvm, seems to be a custom option by asobo that only works with the wasm-ld.exe from the msfs-sdk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Do Not Merge Not Ready For Testing Not ready for testing as still being discussed or developed. SU15
Projects
Quality Assurance
⌛ Awaiting Actions
Development

Successfully merging this pull request may close these issues.

None yet

2 participants