summaryrefslogtreecommitdiffstats
path: root/tests/run-make/compressed-debuginfo/Makefile
blob: d2f24dde00d7bb29161c1a09c2c0ba0623f43aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# ignore-cross-compile
include ../tools.mk

# only-linux
#
# This tests debuginfo-compression.

all: zlib zstandard

zlib:
	test "`$(RUSTC) --crate-name=foo --crate-type=lib --emit=obj -C debuginfo=full -Z debuginfo-compression=zlib foo.rs 2>&1 | sed 's/.*unknown.*zlib.*/missing/' | head -n 1`" = missing || readelf -t $(TMPDIR)/foo.o | grep -q ZLIB

zstandard:
	test "`$(RUSTC) --crate-name=foo --crate-type=lib --emit=obj -C debuginfo=full -Z debuginfo-compression=zstd foo.rs 2>&1 | sed 's/.*unknown.*zstd.*/missing/' | head -n 1`" = missing || readelf -t $(TMPDIR)/foo.o | grep -q ZST