]> ruderich.org/simon Gitweb - blhc/blhc.git/commit
Detect compile type (preprocess, compile, link) correctly.
authorSimon Ruderich <simon@ruderich.org>
Wed, 21 Mar 2012 19:43:06 +0000 (20:43 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 21 Mar 2012 19:43:06 +0000 (20:43 +0100)
commit35a018278ad2fb931749f25d41bea0b7bd4f11e9
tree1ac9d3a58d751b327dd2f41d99e37994316a31d8
parentfa2e7db77f6c7c9ae52841d5b4cfc8d9a1f221a9
Detect compile type (preprocess, compile, link) correctly.

The arguments to gcc (-E, -S, -c) and the file extension are used to
detect the correct type.

This fixes many false positives and a few false negatives.

Thanks to Bernhard R. Link for the idea.
bin/blhc
t/logs/bad
t/logs/bad-cflags
t/logs/bad-cppflags
t/logs/bad-library
t/logs/cc
t/logs/g++
t/logs/gcc
t/logs/good
t/logs/good-library
t/tests.t