From b4327d02599a77e3b6f544d133d4d772cfb8c768 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 5 Jan 2022 11:36:38 +0000 Subject: [PATCH] Disable LTO (#61) to work around rust-lang/rust#90357 --- Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5fcd52e..fe911aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,10 @@ codegen-units = 1 debug = 2 debug-assertions = false # <- incremental = false -lto = 'fat' +# NOTE disabled to work around issue rust-lang/rust#90357 +# the bug results in log messages not having location information +# (the line printed below the log message that contains the file-line location) +# lto = 'fat' opt-level = 3 # <- overflow-checks = false # <- @@ -59,7 +62,8 @@ codegen-units = 1 debug = 2 debug-assertions = false # <- incremental = false -lto = 'fat' +# see comment in the profile.release section +lto = 'false' opt-level = 3 # <- overflow-checks = false # <-