]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'martin-t/units' into 'master'
authorTimePath <andrew.hardaker1995@gmail.com>
Wed, 19 Jul 2017 09:53:11 +0000 (09:53 +0000)
committerTimePath <andrew.hardaker1995@gmail.com>
Wed, 19 Jul 2017 09:53:11 +0000 (09:53 +0000)
Make qcsrc/tools/compilationunits.sh clean up after itself

See merge request !450

1  2 
qcsrc/tools/compilationunits.sh

index 8543f8c861244934b6b4af4277a80d9ad1ebeace,a43185b16c952c8e9247ceb68749353c4bd981d8..55799ff7c4db70fe3d470284b1c8bc6b4548b69d
@@@ -2,6 -2,25 +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"
@@@ -11,9 -30,6 +30,9 @@@ declare -a QCCDEFS=
      -DNDEBUG=1
      -DXONOTIC=1
      -DWATERMARK="\"$(git describe --tags --dirty='~')\""
 +    -DENABLE_EFFECTINFO=0
 +    -DENABLE_DEBUGDRAW=0
 +    -DENABLE_DEBUGTRACE=0
  )
  QCCDEFS="${QCCDEFS[@]}"