From f9ab04b63aee614ddfd3b50a4c6a0eac2094a2fe Mon Sep 17 00:00:00 2001 From: Arnaud Vrac Date: Tue, 19 Sep 2023 12:42:19 +0200 Subject: 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 Signed-off-by: Hans-Christian Noren Egtvedt --- config/linker/mold.in | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 config/linker/mold.in (limited to 'config/linker') diff --git a/config/linker/mold.in b/config/linker/mold.in new file mode 100644 index 00000000..2e605a91 --- /dev/null +++ b/config/linker/mold.in @@ -0,0 +1,7 @@ +# mold options + +config LINKER_MOLD_has_cmake + def_bool $(success,which cmake) + +comment "mold requires cmake" + depends on !LINKER_MOLD_has_cmake -- cgit v1.2.3