diff --git a/libretro-build-common.sh b/libretro-build-common.sh index e9684110..4b0b2f34 100755 --- a/libretro-build-common.sh +++ b/libretro-build-common.sh @@ -461,6 +461,7 @@ build_libretro_bsnes_modern() { if [ -z "${NOCLEAN}" ]; then rm -f obj/*.{o,"${FORMAT_EXT}"} + rm -f out/*.{o,"${FORMAT_EXT}"} fi "${MAKE}" -f Makefile platform="${FORMAT_COMPILER_TARGET}" compiler="${4}" ui='target-libretro' profile="${3}" "-j${JOBS}" || die "Failed to build ${1} ${3} core" cp -f "out/${1}_libretro${FORMAT}.${FORMAT_EXT}" "${RARCH_DIST_DIR}/${1}_${3}_libretro${FORMAT}.${FORMAT_EXT}"