When compiling the compiler_builtins crate for any of the thumb targets in release mode and with debuginfo enabled. Without debuginfo the build succeeds (we are testing this by building rust-std for the thumb targets). This doesn't affect the ARM Linux targets.
STR
$ cp -r $(rustc --print sysroot)/lib/rustlib/src/rust/src/ src && cd $_
$ cd libcompiler_builtins
$ cat >>Cargo.toml <<'EOF'
[profile.release]
debug = true
EOF
$ cargo build --target thumbv7m-none-eabi --release
LLVM ERROR: Unexpected anonymous function when writing summary
Metadata
$ rustc -V
rustc 1.28.0-nightly (e3bf634e0 2018-06-28)
Needs bisecting
cc @alexcrichton
When compiling the
compiler_builtinscrate for any of thethumbtargets in release mode and with debuginfo enabled. Without debuginfo the build succeeds (we are testing this by building rust-std for thethumbtargets). This doesn't affect the ARM Linux targets.STR
Metadata
Needs bisecting
cc @alexcrichton