1
0
forked from 0ad/0ad
0ad/build/workspaces/update-workspaces.sh
olsner 35ac7776ee GCC PCH support: closes #155, and decreases build times by a BUNCH!
Changed the default to generating PCH's for all platforms and added a
premake
command line option --without-pch, in case it breaks somewhere (but
AFAIK, Mac's
use recent enough versions of GCC, so it should be fine).

# Added support for precompiled headers into the Linux build system.
Build times are now significantly reduced (up to 50%!)

This was SVN commit r4642.
2006-11-12 19:46:47 +00:00

25 lines
490 B
Bash
Executable File

#!/bin/sh
# build/workspaces/
start_dir=$(pwd)
premake_dir=$(pwd)/../premake
workspace_dir=$(pwd)/gcc
cd $premake_dir
# build/premake/
./premake --target gnu --outpath $workspace_dir --atlas $*
# These files need to be linked; premake makefiles assume that the
# lua file is accessible from the makefile directory
cd $workspace_dir
ln -f -s $premake_dir/premake.lua $premake_dir/functions.lua .
if [ -x $premake_dir/premake ]; then
ln -f -s $premake_dir/premake .
fi
cd $start_dir