zig/debian/rules

24 lines
713 B
Plaintext
Raw Normal View History

2024-11-29 20:53:46 +01:00
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
2024-11-29 20:49:29 +01:00
2024-11-29 20:53:46 +01:00
# Can't just run "zig build test" because some tests are know to fail
TESTS = fmt cases behavior compiler-rt universal-libc compare-output standalone stack-traces cli translate-c run-translated-c std
%:
dh $@
2024-11-29 20:49:29 +01:00
2024-11-29 20:53:46 +01:00
override_dh_auto_clean:
dh_auto_clean
\rm -rf zig-cache
2024-11-29 20:49:29 +01:00
2024-11-29 20:53:46 +01:00
override_dh_install:
dh_install
chrpath --delete debian/zig/usr/bin/zig
2024-11-29 20:49:29 +01:00
2024-11-29 20:53:46 +01:00
#override_dh_auto_test:
# XDG_CACHE_HOME= ./obj-$(DEB_HOST_MULTIARCH)/stage3/bin/zig build test
2024-11-29 20:49:29 +01:00
2024-11-29 20:53:46 +01:00
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
$(foreach t,$(TESTS),XDG_CACHE_HOME= ./obj-$(DEB_HOST_MULTIARCH)/stage3/bin/zig build test-$(t) || echo "Warning test-${t} failed" ;)
endif