Skip to content

Commit

Permalink
vscode: Use mold on linux
Browse files Browse the repository at this point in the history
Link times go from almost 10s down to 1.5s
  • Loading branch information
sndels committed Aug 3, 2024
1 parent 554bde5 commit 1be8a90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
// Ninja color output
"-DCMAKE_CXX_FLAGS=-fdiagnostics-color=always",
// mold is significantly faster than the default linkers
"-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=mold",
"-G",
"Ninja",
"-B",
Expand All @@ -305,6 +307,8 @@
"-DCMAKE_BUILD_TYPE=Debug",
// Ninja color output
"-DCMAKE_CXX_FLAGS=-fdiagnostics-color=always",
// mold is significantly faster than the default linkers
"-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=mold",
"-G",
"Ninja",
"-B",
Expand Down

0 comments on commit 1be8a90

Please sign in to comment.