aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-17 14:00:08 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-12-18 10:17:36 +0530
commit6292122a19ed765ed060c8d4aad9d0791cfef9f1 (patch)
tree9694ee52a64526251665f54ae1f070ebccc98675 /mesonbuild/interpreter.py
parentb389f430609a4956d23beddcdaa26b3fea06bc23 (diff)
downloadmeson-6292122a19ed765ed060c8d4aad9d0791cfef9f1.zip
meson-6292122a19ed765ed060c8d4aad9d0791cfef9f1.tar.gz
meson-6292122a19ed765ed060c8d4aad9d0791cfef9f1.tar.bz2
has_header: Don't compile, only preprocess
Since we're checking for the existence of a header, just running the preprocessor is enough. According to my benchmarks, doing this makes the test roughly 2x faster. I'm sure this will be useful for other checks too in the future. This shaves off 7% on the configure time for glib on my machine. This also fixes the issue that we had earlier where you had to specify any extra headers needed to resolve symbols in the header being checked for with `prefix`.
Diffstat (limited to 'mesonbuild/interpreter.py')
0 files changed, 0 insertions, 0 deletions