From e154ceeefdedcd4dbc5e400bf0a86d0773fc79b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Moreau?= <cem.moreau@gmail.com>
Date: Mon, 24 May 2021 09:14:04 +0000
Subject: [PATCH] fix: #1429 compilation on ARM x64

---
 .cargo/config | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.cargo/config b/.cargo/config
index 1f509acb1..cb3a6ca43 100644
--- a/.cargo/config
+++ b/.cargo/config
@@ -9,3 +9,8 @@ uc = "update -p duniter-core"
 ug = "update -p duniter-gva"
 ugc = "update -p duniter-gva-conf"
 xtask = "run --package xtask --"
+
+# ARM x64 specific, otherwise crash (because of rustc bug)
+# see: https://github.com/rust-lang/cargo/issues/6489
+[target.'cfg(all(target_arch = "aarch64"))']
+rustflags = ["-Ccodegen-units=1"]
-- 
GitLab