summaryrefslogtreecommitdiffstats
path: root/tests/run-make/issue-109934-lto-debuginfo/Makefile
blob: 3b7a99d3dbc62c8576fa582194855246a763952f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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