Compiling without AVX instructions
⚓ Rust 📅 2025-09-23 👤 surdeus 👁️ 9I'm trying to compile Rustdesk server to run on older hardware which does not support AVX and I cannot compile it directly on it:
- sub-repo: GitHub - rustdesk/hbb_common
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
🏷️ Rust_feed