I'm trying to use GDB to debug various issues we're seeing but seem to need to turn LTO off. If I try and remove the `--release`` flag to cargo xbuild, then all hell breaks loose.

I'm a Rust noob so likely doing something silly. I've updated my Cargo.toml to the following:

[workspace]
members = [
  "libc",
  "libdyld",
  "libdwarf",
  "libio",
  "libunwind",
  "libksupport",
  "runtime",
  "satman"
]

[profile.release]
panic = "abort"
debug = true
codegen-units = 1
opt-level = 2
lto = true

[profile.dev]
panic = "abort"
debug = true
codegen-units = 1
opt-level = 0
lto = false

But I'm getting the following linker errors:

          rust-lld: error: duplicate symbol: __divmoddi4
          >>> defined at macros.rs:269 (/home/shareefj/.cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.39/src/macros.rs:269)
          >>>            compiler_builtins-9789b88a154d024b.compiler_builtins.2m0fe2m0-cgu.0.rcgu.o:(__divmoddi4) in archive /home/shareefj/git/multicore-qc/control/third_party/artiq-zynq/src/target/sysroot/lib/rustlib/armv7-none-eabihf/lib/libcompiler_builtins-9789b88a154d024b.rlib

What's the correct command line for building a debug release?