Commit Graph

2 Commits

Author SHA1 Message Date
Mike Lundy
1c395b298d mold: tell cmake which compilers to use
The mold build was using gcc in the PATH, instead of the shiny gcc we
just built (the way the other companion libs/tools do)

Signed-off-by: Mike Lundy <mlundy@splunk.com>
2024-11-17 20:00:37 +13:00
Arnaud Vrac
f9ab04b63a Add mold linker build
Allows building the #mold linker, which can then be used in the
cross-toolchain by passing the -fuse-ld=mold to the gcc flags. It is
much faster than ld or gold.

This requires a C++20 compiler and cmake.

Initially implemented by Arnaud, and HC added configure check for cmake.

Outstanding task to validate compiler is C++20 compatible.

Signed-off-by: Arnaud Vrac <avrac@freebox.fr>
Signed-off-by: Hans-Christian Noren Egtvedt <egtvedt@samfundet.no>
2024-06-05 19:31:45 +12:00