Skip to content

Commit 4dfb7b8

Browse files
committed
tools/memcached_benchmark: use mold as link-arg again
Signed-off-by: Ruowen Qin <ruowenq2@illinois.edu>
1 parent 83a0edd commit 4dfb7b8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/memcached_benchmark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939
- uses: actions-rust-lang/setup-rust-toolchain@v1
4040
with:
4141
components: rustfmt
42-
toolchain: 1.85.0
42+
toolchain: stable
4343
- name: Rustfmt Check
4444
uses: actions-rust-lang/rustfmt@v1
4545
with:
4646
manifest-path: ./tools/memcached_benchmark/Cargo.toml
4747
- name: Build
48-
run: RUSTFLAGS='-Ctarget-cpu=native -Clinker-plugin-lto -Clink-arg=-flto=thin -Clink-arg=-fuse-ld=lld -Clink-arg=-Wl,-O1 -Clink-arg=-Wl,--as-needed' cargo build -vvv
48+
run: RUSTFLAGS='-Ctarget-cpu=native -Clinker-plugin-lto -Clink-arg=-flto=thin -Clink-arg=-fuse-ld=mold -Clink-arg=-Wl,-O1 -Clink-arg=-Wl,--as-needed' cargo build -vvv
4949
- name: Run tests with debug build
50-
run: RUSTFLAGS='-Ctarget-cpu=native -Clinker-plugin-lto -Clink-arg=-flto=thin -Clink-arg=-fuse-ld=lld -Clink-arg=-Wl,-O1 -Clink-arg=-Wl,--as-needed' cargo test --verbose
50+
run: RUSTFLAGS='-Ctarget-cpu=native -Clinker-plugin-lto -Clink-arg=-flto=thin -Clink-arg=-fuse-ld=mold -Clink-arg=-Wl,-O1 -Clink-arg=-Wl,--as-needed' cargo test --verbose
5151
- name: Run tests with release build
52-
run: RUSTFLAGS='-Ctarget-cpu=native -Clinker-plugin-lto -Clink-arg=-flto=thin -Clink-arg=-fuse-ld=lld -Clink-arg=-Wl,-O1 -Clink-arg=-Wl,--as-needed' cargo test -r --verbose
52+
run: RUSTFLAGS='-Ctarget-cpu=native -Clinker-plugin-lto -Clink-arg=-flto=thin -Clink-arg=-fuse-ld=mold -Clink-arg=-Wl,-O1 -Clink-arg=-Wl,--as-needed' cargo test -r --verbose

tools/memcached_benchmark/.cargo/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ rustflags = [
77
"-Zthreads=8",
88
"-Ctarget-cpu=native",
99
"-Clinker-plugin-lto",
10-
"-Clink-args=-flto=thin -fuse-ld=lld -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections",
10+
"-Clink-args=-flto=thin -fuse-ld=mold -Wl,-O1 -Wl,--as-needed -Wl,--gc-sections",
1111
]

0 commit comments

Comments
 (0)