forked from 0ad/0ad
Yves
c02a7e1a7b
This upgrade also introduces exact stack rooting (see to the wiki: JSRootingGuide) and fixes problems with moving GC. This allows us to enable generational garbage collection (GGC). Measurements a few months ago have shown a performance improvement of a non-visual replay of around 13.5%. This probably varies quite a bit, but it should be somewhere between 5-20%. Memory usage has also been improved. Check the forum thread for details. Thanks to everyone from the team who helped with this directly or indirectly (review, finding and fixing issues, the required C++11 upgrade, the new autobuilder etc.)! Also thanks to the SpiderMonkey developers who helped on the #jsapi channel or elsewhere! Fixes #2462, #2415, #2428, #2684, #1374 Refs #2973, #2669 This was SVN commit r16214.
51 lines
1.6 KiB
Bash
Executable File
51 lines
1.6 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Some of our makefiles depend on GNU make, so we set some sane defaults if MAKE
|
|
# is not set.
|
|
case "`uname -s`" in
|
|
"FreeBSD" | "OpenBSD" )
|
|
MAKE=${MAKE:="gmake"}
|
|
;;
|
|
* )
|
|
MAKE=${MAKE:="make"}
|
|
;;
|
|
esac
|
|
|
|
# (We don't attempt to clean up every last file here - output in
|
|
# binaries/system/ will still be there, etc. This is mostly just
|
|
# to quickly fix problems in the bundled dependencies.)
|
|
|
|
cd "$(dirname $0)"
|
|
# Now in build/workspaces/ (where we assume this script resides)
|
|
|
|
# We don't want to clean bundled libs on OS X
|
|
if [ "`uname -s`" != "Darwin" ]; then
|
|
echo "Cleaning bundled third-party dependencies..."
|
|
|
|
(cd ../../libraries/source/fcollada/src && rm -rf ./output)
|
|
(cd ../../libraries/source/spidermonkey && rm -f .already-built)
|
|
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs31)
|
|
# Still delete the directory of the previous SpiderMonkey version to
|
|
# avoid wasting disk space if people clean workspaces after updating.
|
|
(cd ../../libraries/source/spidermonkey && rm -rf ./mozjs24)
|
|
(cd ../../libraries/source/nvtt/src && rm -rf ./build)
|
|
fi
|
|
|
|
(cd ../premake/premake4/build/gmake.bsd && ${MAKE} clean)
|
|
(cd ../premake/premake4/build/gmake.macosx && ${MAKE} clean)
|
|
(cd ../premake/premake4/build/gmake.unix && ${MAKE} clean)
|
|
|
|
echo "Cleaning build output..."
|
|
|
|
# Remove workspaces/gcc if present
|
|
rm -rf ./gcc
|
|
# Remove workspaces/codeblocks if present
|
|
rm -rf ./codeblocks
|
|
# Remove workspaces/xcode3 if present
|
|
rm -rf ./xcode3
|
|
# Remove workspaces/xcode4 if present
|
|
rm -rf ./xcode4
|
|
|
|
echo
|
|
echo "Done. Try running update-workspaces.sh again now."
|