Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export ASSET_OUT_DIR=debian/tmp
4
5 include /usr/share/dpkg/pkg-info.mk
6
7 # Disable lto on 32-bit arches since it OOMs otherwise
8 execute_before_dh_auto_configure:
9 ifeq ($(DEB_HOST_ARCH_BITS),32)
10 export DEB_BUILD_OPTIONS += optimize=-lto
11 endif
12
13 # enable on 64-bit
14 execute_after_dh_auto_configure:
15 ifeq ($(DEB_HOST_ARCH_BITS),64)
16 echo 'lto="fat"' >> debian/cargo_home/config.toml
17 echo 'codegen-units=1' >> debian/cargo_home/config.toml
18 echo 'opt-level="z"' >> debian/cargo_home/config.toml
19 cat debian/cargo_home/config.toml
20 endif
21
22 %:
23 dh $@ --buildsystem cargo --with bash-completion