Skip to content

Commit

Permalink
Enable optimization tweaks and remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Jan 20, 2024
1 parent b232d81 commit e8668e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Clinker-plugin-lto -Cremark=all -Zremark-dir=/tmp/remarks -Clinker=clang-17
jobs:
test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -43,6 +44,12 @@ jobs:
command: bench
args: --no-run
toolchain: nightly
- name: Upload optimization remarks
uses: actions/upload-artifact@v4
with:
name: Optimization remarks
path: /tmp/remarks/
if-no-files-found: error
- name: Save Rust cache
uses: actions/cache/save@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ num_cpus = "1.16.0"
[[bench]]
name = "bench"
harness = false
lto = true
codegen-units = 1
opt-level = 3

0 comments on commit e8668e8

Please sign in to comment.