summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Marc-Antoine Perennou <keruspe@exherbo.org> 2017-10-02 11:28:39 +0200
committerAvatar Marc-Antoine Perennou <keruspe@exherbo.org> 2017-10-02 11:28:39 +0200
commit58d38311acc8520979abfad7c6cd6fcfc65a12a2 (patch)
tree6b0d41bfb73ac238f4c3831747a5b0008bf89098
parent47f79052053f7d391377b985cf7be29263c5d2df (diff)
downloadrust-58d38311acc8520979abfad7c6cd6fcfc65a12a2.tar.gz
rust-58d38311acc8520979abfad7c6cd6fcfc65a12a2.tar.xz
rust: allow unknown configuration keys
Signed-off-by: Marc-Antoine Perennou <keruspe@exherbo.org>
-rw-r--r--packages/dev-lang/rust/rust-build.exlib3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/dev-lang/rust/rust-build.exlib b/packages/dev-lang/rust/rust-build.exlib
index 8c5e08a..d7b70d3 100644
--- a/packages/dev-lang/rust/rust-build.exlib
+++ b/packages/dev-lang/rust/rust-build.exlib
@@ -162,6 +162,9 @@ rust-build_src_prepare() {
echo -n "${BOOTSTRAP_CARGO}" > build/${RUST_TARGET}/stage0/.cargo-stamp
fi
+ # We fill config.toml with all the recent config keys, so don't fail o them on older versions
+ edo sed -e 's/deny_unknown_fields,//' -i src/bootstrap/config.rs
+
default
}