Add a script to time how long it takes to compile a header inside mapnik

This commit is contained in:
Dane Springmeyer 2015-12-16 13:01:56 -08:00
parent eff087c0cf
commit e3a1108ebd

9
scripts/time-header Executable file
View file

@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -eu
set -o pipefail
CXXFLAGS="$(./utils/mapnik-config/mapnik-config --cflags)"
CXX="$(./utils/mapnik-config/mapnik-config --cxx)"
echo "Time taken to compile '$(basename $1)':"
time ${CXX} $1 -I./test -I./deps/agg/include -Ideps -I./include $CXXFLAGS -o /tmp/header.out