Skip to content

Instantly share code, notes, and snippets.

View NicerNewerCar's full-sized avatar
🎿

AJ Lombardi NicerNewerCar

🎿
  • Salt Lake City, UT
  • 20:48 (UTC -06:00)
View GitHub Profile
@MawKKe
MawKKe / cmake-cxx-mold-linking-howto.md
Last active October 12, 2025 22:07
How to try out the new "mold" linker with your CMake C/C++ project

How to try out the new mold linker with your CMake C/C++ project

Here is a quick how-to if you want to try out the new (supposedly fast) C/C++ linker https://github.com/rui314/mold

In this document I used Ubuntu-22.04 docker container with

  • GCC version 11.2.0
  • Clang version 14.0.0

1. Install mold :