rust编译32位

xingyun86 2月前 249

1.下载32位编译

rustup target add i686-pc-windows-msvc

2.当前项目根目录创建.cargo目录,新建config.toml

[target.i686-pc-windows-msvc]

rustflags = ["-C", "target-feature=+crt-static"]

linker = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\link.exe"

3.执行编译

debug版编译:cargo build --target i686-pc-windows-msvc

release版编译:cargo build --release --target i686-pc-windows-msvc


×
打赏作者
最新回复 (0)
只看楼主
全部楼主
返回