this post was submitted on 25 Feb 2024
415 points (97.5% liked)

linuxmemes

20880 readers
5 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 8 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

[โ€“] Shareni 3 points 8 months ago

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

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

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