78d805cd87
Using `ld.lld` may have been clever, but that was getting the /system/ ld.lld, not one we may have built as part of building llvm. By using the warning message coming directly from rustc we now correctly skip the zlib and zstd tests when the support is missing.
16 lines
615 B
Makefile
16 lines
615 B
Makefile
# ignore-cross-compile
|
|
include ../tools.mk
|
|
|
|
# only-linux
|
|
# min-llvm-version: 16.0
|
|
#
|
|
# 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
|