Skip to content

Commit

Permalink
Enable clang for ppc64.
Browse files Browse the repository at this point in the history
Handle debian.
  • Loading branch information
sobomax committed Oct 16, 2024
1 parent 3349e9a commit 1cd460f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ endif #ARCH, sparc64
#if ipaq/netwinder
ifeq ($(ARCH), arm)
# if gcc
ifeq ($(CC_NAME), gcc)
ifeq ($(CC_NAME:clang=gcc), gcc)
#common stuff
CFLAGS+=$(CC_OPTIMIZE_FLAG) -funroll-loops -Wcast-align $(PROFILE) \
-Wall -marm
Expand Down Expand Up @@ -1298,7 +1298,7 @@ endif #ARCH, ppc
#if ppc64
ifeq ($(ARCH), ppc64)
# if gcc
ifeq ($(CC_NAME), gcc)
ifeq ($(CC_NAME:clang=gcc), gcc)
#common stuff
CFLAGS+=$(CC_OPTIMIZE_FLAG) -funroll-loops $(PROFILE) -Wall
ifeq ($(CC_CLASS), 4.x)
Expand Down
4 changes: 2 additions & 2 deletions scripts/build/do_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ MAKE_CMD="${MAKE_ENV} make"

if [ ! -z "${ONE_MODULE}" ]
then
env CC_EXTRA_OPTS="${CC_EXTRA_OPTS:-"-Werror"}" ${MAKE_CMD} \
env CC_EXTRA_OPTS="${CC_EXTRA_OPTS:-"-Werror -Wno-atomic-alignment"}" ${MAKE_CMD} \
-C "modules/${ONE_MODULE}"
else
env CC_EXTRA_OPTS="${CC_EXTRA_OPTS:-"-Werror"}" ${MAKE_CMD} \
env CC_EXTRA_OPTS="${CC_EXTRA_OPTS:-"-Werror -Wno-atomic-alignment"}" ${MAKE_CMD} \
exclude_modules="${EXCLUDE_MODULES}" "${@}" ${MAKE_TGT:-"all"}
fi
4 changes: 4 additions & 0 deletions scripts/build/install_depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ do
then
pkg="python-dev-is-python3"
fi
if [ "${BUILD_OS%-*}" = "debian" -a "${pkg}" = libmysqlclient-dev ]
then
pkg="libmariadb-dev"
fi
_PKGS="${_PKGS} ${pkg}"
done
PKGS="${_PKGS}"
Expand Down

0 comments on commit 1cd460f

Please sign in to comment.