From: Simon Ruderich Date: Wed, 21 Mar 2012 19:43:06 +0000 (+0100) Subject: Detect compile type (preprocess, compile, link) correctly. X-Git-Tag: 0.01~81 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=35a018278ad2fb931749f25d41bea0b7bd4f11e9;hp=35a018278ad2fb931749f25d41bea0b7bd4f11e9;p=blhc%2Fblhc.git 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. ---