#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

ifneq ($(DEB_HOST_ARCH),mips64el)
RUSTFLAGS += -C codegen-units=1
endif
export RUSTFLAGS

%:
	dh $@ --buildsystem cargo

execute_after_dh_strip:
	objcopy --remove-section=.gnu_debuglink \
		--remove-section=.note.gnu.build-id \
		debian/debian-lsp/usr/bin/debian-lsp || true
