summaryrefslogtreecommitdiffstats
path: root/debian/config.toml.in
diff options
context:
space:
mode:
Diffstat (limited to 'debian/config.toml.in')
-rw-r--r--debian/config.toml.in71
1 files changed, 71 insertions, 0 deletions
diff --git a/debian/config.toml.in b/debian/config.toml.in
new file mode 100644
index 000000000..899d8ebeb
--- /dev/null
+++ b/debian/config.toml.in
@@ -0,0 +1,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"]
+
+[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