当您使用Cargo时,如何让ld链接器变得冗长?我在.cargo/config
尝试了several things,但没有运气。什么是正确的设置?直接使用gcc时,我可以-Wl,--verbose
。
[build]
rustflags = [
"-C", "prefer-dynamic",
# "-Z", "pre-link-arg=-pthread",
"-C", "link-arg=-pthread",
"-C", "link-arg=-fopenmp",
# "-C", "link-arg=-LC:/Octave/Octave-4.2.1/lib64/gcc/x86_64-w64-mingw32/4.9.4",
# "-C", "link-arg=--sysroot=C:/Octave/Octave-4.2.1",
# "-Z", "pre-link-args=-LC:/Octave/Octave-4.2.1/lib",
# "-Z", "pre-link-args=-LC:\\Octave\\Octave-4.2.1\\lib",
# "-C", "link-arg=--verbose",
# "-C", "link-arg=-v",
# "-C", "link-arg=-Wl,--verbose",
# "-Z", "print-link-args",
]
[target.x86_64-pc-windows-gnu]
linker = "C:/Octave/Octave-4.2.1/bin/gcc.exe"
# rustflags = [
# "-C", "link-arg=-Wl,--verbose",
# ]
# [term]
# verbose = true
我是trying to build Octave with Rust的图书馆。