2023-07-12 16:07:34 -05:00
|
|
|
# ignore-cross-compile
|
|
|
|
include ../tools.mk
|
|
|
|
|
|
|
|
# only-linux
|
|
|
|
# min-llvm-version: 16.0
|
|
|
|
#
|
|
|
|
# This tests debuginfo-compression.
|
|
|
|
|
|
|
|
all: zlib zstandard
|
|
|
|
|
|
|
|
zlib:
|
2023-09-08 10:30:24 -05:00
|
|
|
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
|
2023-07-12 16:07:34 -05:00
|
|
|
|
|
|
|
zstandard:
|
2023-09-08 10:30:24 -05:00
|
|
|
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
|