7 rustc = "RUST_DESTDIR/usr/bin/rustc"
8 cargo = "RUST_DESTDIR/usr/bin/cargo"
10 build = "DEB_BUILD_RUST_TYPE"
11 host = ["DEB_HOST_RUST_TYPE"]
12 target = ["DEB_TARGET_RUST_TYPE"]
14 #full-bootstrap = true
15 # originally needed to work around #45317 but no longer necessary
16 # currently we have to omit it because it breaks #48319
18 # this might get changed later by override_dh_auto_configure-indep
19 # we do it this way to avoid spurious rebuilds
25 [target.DEB_BUILD_RUST_TYPE]
26 llvm-config = "LLVM_DESTDIR/usr/lib/llvm-LLVM_VERSION/bin/llvm-config"
27 linker = "DEB_BUILD_GNU_TYPE-gcc"
29 ifelse(DEB_BUILD_RUST_TYPE,DEB_HOST_RUST_TYPE,,
30 [target.DEB_HOST_RUST_TYPE]
31 llvm-config = "LLVM_DESTDIR/usr/lib/llvm-LLVM_VERSION/bin/llvm-config"
32 linker = "DEB_HOST_GNU_TYPE-gcc"
35 ifelse(DEB_BUILD_RUST_TYPE,DEB_TARGET_RUST_TYPE,,DEB_HOST_RUST_TYPE,DEB_TARGET_RUST_TYPE,,
36 [target.DEB_TARGET_RUST_TYPE]
37 llvm-config = "LLVM_DESTDIR/usr/lib/llvm-LLVM_VERSION/bin/llvm-config"
38 linker = "DEB_TARGET_GNU_TYPE-gcc"
49 optimize = MAKE_OPTIMISATIONS
52 channel = "RELEASE_CHANNEL"
54 # parallel codegen interferes with reproducibility, see
55 # https://github.com/rust-lang/rust/issues/34902#issuecomment-319463586
58 debuginfo-level-std = 2
60 # see also d-custom-debuginfo-path.patch
61 remap-debuginfo = true
64 backtrace-on-ice = true