Repository navigation
Add a Rust toolchain for v1.28.0 - #29
Merged
Merged
Conversation
The FMUs of OpenModelica 1.28.0 link a Rust simulation runtime, which a source-code FMU builds with cargo. The v1.27.0 image has no cargo, so cross-compiling such an FMU stops at configure time. The image now installs rustup 1.29.1 (checksum verified) with a pinned Rust 1.98.1 and a target for every toolchain file: | Toolchain file | Rust target | | ------------------- | ----------------------------- | | i686-linux-gnu | i686-unknown-linux-gnu | | x86_64-linux-gnu | x86_64-unknown-linux-gnu | | aarch64-linux-gnu | aarch64-unknown-linux-gnu | | arm-linux-gnueabi | armv5te-unknown-linux-gnueabi | | arm-linux-gnueabihf | armv7-unknown-linux-gnueabihf | | i686-w64-mingw32 | i686-pc-windows-gnu | | x86_64-w64-mingw32 | x86_64-pc-windows-gnu | Each toolchain file sets `OM_RUST_TARGET_TRIPLE` (a cache variable, so `-D` overrides it), which the FMU's CMake hands to `cargo --target`, and the image sets `CARGO_TARGET_<triple>_LINKER` to the matching gcc. `RUSTUP_HOME`/`CARGO_HOME` are world-writable, as in the official rust image, because OpenModelica runs the image with `--user`. The toolchain files are copied last, so editing one no longer reinstalls every package. Assisted-by: Claude Opus 5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The FMUs of OpenModelica 1.28.0 link a Rust simulation runtime, which a source-code FMU builds with cargo. The v1.27.0 image has no cargo, so cross-compiling such an FMU stops at configure time.
The image now installs rustup 1.29.1 (checksum verified) with a pinned Rust 1.98.1 and a target for every toolchain file:
Each toolchain file sets
OM_RUST_TARGET_TRIPLE(a cache variable, so-Doverrides it), which the FMU's CMake hands tocargo --target, and the image setsCARGO_TARGET_<triple>_LINKERto the matching gcc.RUSTUP_HOME/CARGO_HOMEare world-writable, as in the official rust image, because OpenModelica runs the image with--user.The toolchain files are copied last, so editing one no longer reinstalls every package.
Assisted-by: Claude Opus 5.5