CI: add compiledb to newlib make

This commit is contained in:
2024-06-04 14:53:24 +02:00
parent fbb0205db0
commit ed98779004

View File

@@ -34,11 +34,17 @@ fi
mkdir -p build mkdir -p build
cd build cd build
MAKE_LAUNCHER=
if [[ "$1" = "conf" ]] if [[ "$1" = "conf" ]]
then then
if [[ -z ${CI+x} ]]
then
MAKE_LAUNCHER="compiledb -o $FICUS_ROOT/ficus-toolchain/newlib/newlib-4.4.0.20231231/compile_commands.json"
fi
../newlib-4.4.0.20231231/configure --enable-newlib-supplied-syscalls --prefix=/usr --target=$TARGET ../newlib-4.4.0.20231231/configure --enable-newlib-supplied-syscalls --prefix=/usr --target=$TARGET
fi fi
make -j$BUILD_PARALLEL all $MAKE_LAUNCHER make -j$BUILD_PARALLEL all
make DESTDIR="$FICUS_ROOT/sysroot" install make DESTDIR="$FICUS_ROOT/sysroot" install
cp -r "$FICUS_ROOT/sysroot/usr"/x86_64-ficus/* "$FICUS_ROOT/sysroot/usr" cp -r "$FICUS_ROOT/sysroot/usr"/x86_64-ficus/* "$FICUS_ROOT/sysroot/usr"