Page MenuHomeWildfire Games
Paste P241

Stan's build script on linux
ActivePublic

Authored by Stan on Jan 31 2021, 11:03 AM.
#!/bin/sh
export CC=gcc
export CXX=g++
export CXXFLAGS="-march=native -mtune=native"
# export WX_CONFIG="wx-config-gtk3"
CC_VERSION="$($CC --version | sed -e 's/(.*)//g' -e 's/\s//' | sed 1q)"
CXX_VERSION="$($CXX --version | sed -e 's/(.*)//g' -e 's/\s//' | sed 1q)"
cd "0ad" && svn up
THREADS="$(nproc)"
export JOBS="-j$THREADS"
SVN_REV="$(svnversion -n)"
if [ -e build/svn_revision/svn_revision.txt ] && [ "$(cat build/svn_revision/svn_revision.txt)" = L\""${SVN_REV}-dev"\" ]
then
echo "Already at the latest revision."
else
echo L\""${SVN_REV}"-dev\" > build/svn_revision/svn_revision.txt
fi
cd build/workspaces && echo "Updating workspaces with $CC_VERSION/$CXX_VERSION using $THREADS jobs..."
#(cd gcc && make clean)
# sh clean-workspaces.sh
sh update-workspaces.sh "$JOBS" 2> ../../../build-libs-errors.log
cd gcc && echo "Building pyrogenesis with $CC_VERSION/$CXX_VERSION using $THREADS jobs..."
make CXXFLAGS="$CXXFLAGS" "$JOBS" 2> ../../../../build-errors.log
cd ../../../

Event Timeline

Stan created this paste.Jan 31 2021, 11:03 AM
Stan created this object with visibility "Public (No Login Required)".
Stan edited the content of this paste. (Show Details)Feb 21 2021, 11:48 PM
Stan edited the content of this paste. (Show Details)Sun, May 15, 7:09 PM