我正在尝试在 powerpc arch 上运行 Rust 程序。当我在 C 中构建我的代码时,我使用标志 -mlongcall
。
我如何为我的 Rust 程序使用这个标志?一般来说,如果我能在我的 Rust 构建中使用我从 GCC 知道的标志,那就太好了。
最佳答案
-mlongcall 标志的解决方案是使用标志:-Ctarget-features=+longcall
,如本期建议:add mlongcall flag to rustc
关于gcc - 如何在 Rust 中使用 -mlongcall GCcflags?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58356600/