mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
10b69dde3f
When we're adding a method to a type DIE, we only want a DW_AT_declaration there, because LLVM LTO can't unify type definitions when a child DIE is a full subprogram definition. Now the subprogram definition gets added at the CU level with a specification link back to the abstract declaration.
13 lines
390 B
Makefile
13 lines
390 B
Makefile
# ignore-cross-compile
|
|
include ../tools.mk
|
|
|
|
# With the upgrade to LLVM 16, this was getting:
|
|
#
|
|
# error: Cannot represent a difference across sections
|
|
#
|
|
# The error stemmed from DI function definitions under type scopes, fixed by
|
|
# only declaring in type scope and defining the subprogram elsewhere.
|
|
|
|
all:
|
|
$(RUSTC) lib.rs --test -C lto=fat -C debuginfo=2 -C incremental=$(TMPDIR)/inc-fat
|