Compiling without AVX instructions

⚓ Rust    📅 2025-09-23    👤 surdeus    👁️ 9      

surdeus

Warning

This post was published 38 days ago. The information described in this article may have changed.

I'm trying to compile Rustdesk server to run on older hardware which does not support AVX and I cannot compile it directly on it:

I have tried multiple options like setting
RUSTFLAGS = "-C target-feature=-avx,-avx2"

also similar things in Cargo.toml or .cargo/config.toml .

But I still get binary executable which have these instructions enabled. Can it be from a dependency or the flags are ignored?

What can I try or analyze?

2 posts - 2 participants

Read full topic

🏷️ Rust_feed