this post was submitted on 25 Feb 2024
414 points (97.3% liked)

linuxmemes

20890 readers
2279 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 12 points 7 months ago (2 children)

I was able to use this guys docker image and tool in order to cross compile my Rust programs in the past. They were very simple programs so I dont know how well it works for larger projects.

https://github.com/Jake-Shadle/xwin

[โ€“] [email protected] 3 points 7 months ago

I heard recently that you can use the zig compiler to cross compile rust programs.

[โ€“] [email protected] 3 points 7 months ago

You could even cross-compile from musl... very cool ๐Ÿ‘!