summaryrefslogtreecommitdiffstats
path: root/debian/config.toml.in
blob: f896f97dc7ecb6fe32b5782df73cddf30ae0bb24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
changelog-seen = 2

[build]
submodules = false
vendor = true
locked-deps = false
verbose = VERBOSITY

rustc = "RUST_DESTDIR/usr/bin/rustc"
cargo = "RUST_DESTDIR/usr/bin/cargo"

build = "DEB_BUILD_RUST_TYPE"
host = ["DEB_HOST_RUST_TYPE"]
target = ["DEB_TARGET_RUST_TYPE"]

#full-bootstrap = true
# originally needed to work around #45317 but no longer necessary
# currently we have to omit it because it breaks #48319

# this might get changed later by override_dh_auto_configure-indep
# we do it this way to avoid spurious rebuilds
docs = false

extended = true
tools = ["clippy", "rustfmt", "rustdoc", "rust-analyzer-proc-macro-srv"]

[install]
prefix = "/usr"

[target.DEB_BUILD_RUST_TYPE]
llvm-config = "LLVM_DESTDIR/usr/lib/llvm-LLVM_VERSION/bin/llvm-config"
linker = "DEB_BUILD_GNU_TYPE-gcc"

ifelse(DEB_BUILD_RUST_TYPE,DEB_HOST_RUST_TYPE,,
[target.DEB_HOST_RUST_TYPE]
llvm-config = "LLVM_DESTDIR/usr/lib/llvm-LLVM_VERSION/bin/llvm-config"
linker = "DEB_HOST_GNU_TYPE-gcc"

)dnl
ifelse(DEB_BUILD_RUST_TYPE,DEB_TARGET_RUST_TYPE,,DEB_HOST_RUST_TYPE,DEB_TARGET_RUST_TYPE,,
[target.DEB_TARGET_RUST_TYPE]
llvm-config = "LLVM_DESTDIR/usr/lib/llvm-LLVM_VERSION/bin/llvm-config"
linker = "DEB_TARGET_GNU_TYPE-gcc"

)dnl
[target.wasm32-wasi]
wasi-root = "/usr"

[llvm]
link-shared = true

[rust]
jemalloc = false
optimize = MAKE_OPTIMISATIONS
dist-src = false

channel = "RELEASE_CHANNEL"

# parallel codegen interferes with reproducibility, see
# https://github.com/rust-lang/rust/issues/34902#issuecomment-319463586
#codegen-units = 0
debuginfo-level = 2
debuginfo-level-std = 2
rpath = false
# see also d-custom-debuginfo-path.patch
remap-debuginfo = true

verbose-tests = true
backtrace-on-ice = true

deny-warnings = false