我尝试使用 cargo build --release
编译脚本,但得到以下输出 ( full stacktrace ):
running: "gcc" "-O0" "-c" "-ffunction-sections" "-fdata-sections" "-mwin32" "-m64" "-fPIC" "C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\time-0.1.25\src/time_helpers.c" "-o" "D:\Projects\hots-unpack\target\release\build\time-e758cbe877e9589d\out\src\time_helpers.o"
failed to run custom build command for `time v0.1.25`
Process didn't exit successfully: `D:\Projects\hots-unpack\target\release\build\time-e758cbe877e9589d\build-script-build` (exit code: 101)
--- stderr
thread '<main>' panicked at 'explicit panic', C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\gcc-0.3.4\src\lib.rs:380
这是script我要编译
最佳答案
我需要用于 Windows 的 64 位版本的 gcc:http://mingw-w64.org
现在工作起来很有魅力。
关于rust - 无法运行 `time v0.1.25` 的自定义构建命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29932255/