Skip to content

Commit

Permalink
pkg(ghc-cross): Do not build profiled libs for Arm
Browse files Browse the repository at this point in the history
- Takes more than 6hrs to build

Signed-off-by: Aditya Alok <[email protected]>
  • Loading branch information
MrAdityaAlok committed Jan 31, 2025
1 parent f541167 commit b1adfd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ghc-cross/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ termux_step_pre_configure() {
export CONF_CC_OPTS_STAGE1="$CFLAGS $CPPFLAGS" CONF_GCC_LINKER_OPTS_STAGE1="$LDFLAGS"
export CONF_CC_OPTS_STAGE2="$CFLAGS $CPPFLAGS" CONF_GCC_LINKER_OPTS_STAGE2="$LDFLAGS"

export flavour="perf"

target="$TERMUX_HOST_PLATFORM"
if [ "$TERMUX_ARCH" = "arm" ]; then
target="armv7a-linux-androideabi"
flavour+="+no_profiled_libs" # Otherwise takes more than 6 hrs to build.
fi
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --target=$target"

Expand All @@ -34,7 +37,7 @@ termux_step_pre_configure() {
termux_step_make() {
(
unset CFLAGS CPPFLAGS LDFLAGS # For stage0 compilation.
./hadrian/build binary-dist-xz --flavour=perf --docs=none \
./hadrian/build binary-dist-xz --flavour="$flavour" --docs=none \
"stage1.*.ghc.*.opts += -optl-landroid-posix-semaphore"
)

Expand Down

0 comments on commit b1adfd5

Please sign in to comment.