How do you get verbose output from ld when using Cargo?

How can you use the ld linker when using Cargo? I have tried several things in .cargo/config

, but with no luck. What are the correct settings? When using gcc directly, I can just do -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

      

I am trying to create a library for Octave with Rust.

+3
rust rust-cargo


source to share


No one has answered this question yet

Check out similar questions:

65
How can a Rust program access metadata from its Cargo package?
34
How to get a build of releases with debug information when using cargo?
12
How do I get an assembly from a building using Cargo?
6
How do I compile a static mule binar of a Rust project with native dependencies?
five
FFI example from book cannot find -lanneclib under Windows
1
Custom Cargo Output Directory
1
Cross-compilation for MIPS MT7688 OpenWRT on OSX (mipsel-unknown-linux-musl)
0
/usr/include/openssl/e_os2.h:56:33: fatal error: openssl / opensslconf.h: no such file or directory
0
Making Rust on linux crash with glibc 2.5
0
How can I use another libstdc ++. A with Rust?



All Articles
Loading...
X
Show
Funny
Dev
Pics