From 5014530b4f53fb64eab17d4930490bfc22f45ac3 Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Fri, 3 Jan 2025 16:36:10 +1300 Subject: [PATCH] gcc: Support plugins in core gcc compiler When building for bare metal only do_gcc_core_backend() is used. In order to support GCC plugins the --enable-plugin needs to be passed to GCC's configure. Fixes #2244 Signed-off-by: Chris Packham --- scripts/build/cc/gcc.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 5a60bc78..2d57459b 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -511,6 +511,12 @@ do_gcc_core_backend() { *) extra_config+=( "--enable-decimal-float=${CT_CC_GCC_DEC_FLOATS}" );; esac + if [ "${CT_CC_GCC_ENABLE_PLUGINS}" = "y" ]; then + extra_config+=( --enable-plugin ) + else + extra_config+=( --disable-plugin ) + fi + case "${CT_ARCH}" in mips) case "${CT_CC_GCC_mips_llsc}" in