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>
This commit is contained in:
Mike Lundy 2024-11-01 18:13:23 -07:00 committed by Chris Packham
parent 558d67ec0d
commit 1c395b298d

View File

@ -16,6 +16,8 @@ do_linker_mold_build() {
CT_DoLog EXTRA "Configuring mold for host"
CT_DoExecLog CFG \
CC="${CT_HOST}-gcc" \
CXX="${CT_HOST}-g++" \
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
LDFLAGS="${CT_LDFLAGS_FOR_HOST}" \
cmake "${CT_SRC_DIR}/mold" \