Skip to content

Commit

Permalink
Disable LTO (#61)
Browse files Browse the repository at this point in the history
to work around rust-lang/rust#90357
  • Loading branch information
japaric authored Jan 5, 2022
1 parent 47277bb commit b4327d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 # <-

Expand All @@ -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 # <-

Expand Down

0 comments on commit b4327d0

Please sign in to comment.