]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: Fix enabling Rust and building with GCC for LoongArch
authorWANG Rui <wangrui@loongson.cn>
Sun, 30 Mar 2025 08:30:20 +0000 (16:30 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sun, 30 Mar 2025 08:30:20 +0000 (16:30 +0800)
commit13c23cb4ed09466d73f1beae8956810b95add6ef
treed9ac7b9c34aa949c59e7d28ac6cac7cd5b2f092c
parentf1e7177cbd51678b077fc0ee530e34a6a3dc3ca2
rust: Fix enabling Rust and building with GCC for LoongArch

This patch fixes a build issue on LoongArch when Rust is enabled and
compiled with GCC by explicitly setting the bindgen target and skipping
C flags that Clang doesn't support.

Cc: stable@vger.kernel.org
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: WANG Rui <wangrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
rust/Makefile