From e3114f65e2ccc634cb4e37f395f24213b1952088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santeri=20Salmij=C3=A4rvi?= Date: Thu, 1 Aug 2024 17:33:39 +0300 Subject: [PATCH] vscode: Use mold on linux Link times go from almost 10s down to 1.5s --- .vscode/tasks.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index d9f73545..3c9cff72 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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", @@ -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",