From 3dc0cf09dbbc96175dc396dc6fb3be6bf57b1f30 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 17 Jan 2018 14:27:57 +0100 Subject: [PATCH] disable incremental compilation and parallel codegen in dev mode --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 7aca827..4f140cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,12 @@ cortex-m-semihosting = "0.2.0" features = ["abort-on-panic"] version = "0.3.12" +# disable both incremental compilation and parallel codegen to reduce the chances of running into +# rust-lang/rust#47074 +[profile.dev] +codegen-units = 1 +incremental = false + [profile.release] debug = true lto = true