Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fails with non-boolean LTO setting #24

Open
kozik47 opened this issue Apr 24, 2022 · 0 comments
Open

Fails with non-boolean LTO setting #24

kozik47 opened this issue Apr 24, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kozik47
Copy link

kozik47 commented Apr 24, 2022

In my Cargo.toml:

[profile.release]
lto = "fat"

Running cargo sysroot yields:

Error: ./Cargo.toml

Caused by:
    0: Parse(Error { inner: ErrorInner { kind: Custom, line: Some(17), col: 6, at: Some(301), message: "invalid type: string \"fat\", expected a boolean", key: ["profile", "release", "lto"] } })
    1: invalid type: string "fat", expected a boolean for key `profile.release.lto` at line 18 column 7

My current workaround is:

  • set lto = true in my Cargo.toml
  • run cargo sysroot
  • set lto = "fat" in target/sysroot/Cargo.toml
  • run cargo build inside target/sysroot to get the sysroot rebuilt with my desired lto setting
@DianaNites DianaNites self-assigned this Apr 24, 2022
@DianaNites DianaNites added the bug Something isn't working label Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants