Skip to content

Commit

Permalink
Use the LTO for the release compilation (linera-io#3009)
Browse files Browse the repository at this point in the history
* Use of the LTO for release.
* Still keep the debug symbols.
* The docker is switched to a 16 core system for speed.
  • Loading branch information
MathieuDutSik authored Dec 6, 2024
1 parent b1ccb2b commit 5ff44e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ permissions:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-latest-16-cores
timeout-minutes: 40

steps:
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ social = { path = "./examples/social" }
amm = { path = "./examples/amm" }

[profile.release]
lto = "fat"
debug = true

[profile.bench]
Expand Down

0 comments on commit 5ff44e3

Please sign in to comment.