Skip to content

Commit

Permalink
chore: use mold to link
Browse files Browse the repository at this point in the history
  • Loading branch information
iujakchu committed Jun 2, 2022
1 parent 083c66b commit 3d65f75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion back/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build]
rustflags = ["-Clinker-plugin-lto", "-Clinker=clang" ,"-Clink-arg=-flto","-Clink-arg=-fuse-ld=lld"]
rustflags = ["-Clinker-plugin-lto", "-Clinker=clang" ,"-Clink-arg=-flto","-Clink-arg=-fuse-ld=mold"]

2 changes: 1 addition & 1 deletion xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ add_cxflags("-flto=thin")
-- add_links("pthread")
-- add_links("dl")
add_linkdirs("back/target/release/")
add_ldflags("-fuse-ld=lld")
add_ldflags("-fuse-ld=mold")
add_ldflags("-flto=thin")

0 comments on commit 3d65f75

Please sign in to comment.