From: TimePath Date: Wed, 19 Jul 2017 09:53:11 +0000 (+0000) Subject: Merge branch 'martin-t/units' into 'master' X-Git-Tag: xonotic-v0.8.5~2561 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=29ba411594428929a9e9a0e0baa620210213bec7;hp=520f3c637766ce863a979f3ada2d0eed14247fdd Merge branch 'martin-t/units' into 'master' Make qcsrc/tools/compilationunits.sh clean up after itself See merge request !450 --- diff --git a/qcsrc/tools/compilationunits.sh b/qcsrc/tools/compilationunits.sh index 8543f8c861..55799ff7c4 100755 --- a/qcsrc/tools/compilationunits.sh +++ b/qcsrc/tools/compilationunits.sh @@ -2,6 +2,25 @@ set -eu cd ${0%/*} +# This script attempts to build the codebase in every possible header configuration, +# to check that all files #include what they need, so that we can eventually move away +# from a unity build and into incremental compilation. + +# If these files exist from previous compilation, `./all compile` will stop +# detecting changes after running this script so delete them to trigger +# a recompile next time. +if [ -f ../../csprogs.dat ]; then + rm ../../csprogs.dat +fi + +if [ -f ../../menu.dat ]; then + rm ../../menu.dat +fi + +if [ -f ../../progs.dat ]; then + rm ../../progs.dat +fi + WORKDIR=../.tmp CPP="cc -xc -E"