diff --git a/back/.cargo/config.toml b/back/.cargo/config.toml index ee61927..76ff329 100644 --- a/back/.cargo/config.toml +++ b/back/.cargo/config.toml @@ -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"] diff --git a/xmake.lua b/xmake.lua index d9f48e9..5988dad 100644 --- a/xmake.lua +++ b/xmake.lua @@ -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")