-
-
Notifications
You must be signed in to change notification settings - Fork 818
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust: Doesn't build object file #4354
Comments
I tried this a long time ago and failed, it's complicated and doesn't handle links well. rustc also doesn't provide any more interface parameters for me to do this. |
Try Please, allow choose rust edition, like c++ version! [edition: 2015|2018|2021] - TODO 2024 |
I know it, but I don't know how to link these objects with rust system libs, modules, packages. But rustc a.rs b.rs ... will do some automatically. |
nevermind I found it, but it seems not in the docs and pretty hard to figure out how to do it. |
Xmake 版本
2.8.3
操作系统版本和架构
ArchLinux
描述问题
Just build an object file and then choose the linker or pass any custom rules later.
Tried same test on other supported languages: C++, C, Zig and D. No such problem during the build.
期待的结果
I expected xmake to generate just a rust object file. Allow users to choose the linker!
工程配置
附加信息和错误日志
build
set_kind("object")
:The text was updated successfully, but these errors were encountered: