1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
Description: Disable SpiderMonkey's debug build
This saves us build time from not building mozjs twice, and also saves
disk space in the resulting binary packages.
Origin: https://github.com/flathub/com.play0ad.zeroad/blob/master/patches/0002-Disable-SpiderMonkey-s-debug-build.patch
Bug: https://gitea.wildfiregames.com/0ad/0ad/issues/7612
Forwarded: not-needed
Last-Update: 2026-02-21
--- a/libraries/source/spidermonkey/build.sh
+++ b/libraries/source/spidermonkey/build.sh
@@ -150,17 +150,6 @@
${CTARGET:+--target=${CTARGET}}"
# Build
- # Debug (broken on FreeBSD)
- if [ "${OS}" != "FreeBSD" ]; then
- # shellcheck disable=SC2086
- MOZCONFIG="$(pwd)/../mozconfig" \
- MOZCONFIG_OPTIONS="${CONF_OPTS} \
- --enable-debug \
- --disable-optimize \
- --enable-gczeal" \
- BUILD_DIR="build-debug" \
- ./mach build ${JOBS}
- fi
# Release
# shellcheck disable=SC2086
MOZCONFIG="$(pwd)/../mozconfig" \
@@ -208,11 +197,6 @@
mkdir include-release
cp -R -L "${FOLDER}"/build-release/dist/include/* include-release/
-if [ "${OS}" != "FreeBSD" ]; then
- mkdir include-debug
- cp -R -L "${FOLDER}"/build-debug/dist/include/* include-debug/
-fi
-
# These align the ligns below, making it easier to check for mistakes.
DEB="debug"
REL="release"
@@ -240,9 +224,6 @@
else
# Copy shared libs to lib/, they will also be copied to binaries/system, so the compiler and executable (resp.) can find them.
cp -L "${FOLDER}/build-${REL}/dist/bin/${LIB_PREFIX}${LIB_NAME}-${REL}${LIB_SUFFIX}" "lib/${LIB_PREFIX}${LIB_NAME}-${REL}${LIB_SUFFIX}"
- if [ "${OS}" != "FreeBSD" ]; then
- cp -L "${FOLDER}/build-${DEB}/dist/bin/${LIB_PREFIX}${LIB_NAME}-${DEB}${LIB_SUFFIX}" "lib/${LIB_PREFIX}${LIB_NAME}-${DEB}${LIB_SUFFIX}"
- fi
fi
# cleanup
|