objformat: don't hardcode compiler versions
authorSimon Schubert <corecode@dragonflybsd.org>
Mon, 27 Jul 2009 08:53:36 +0000 (10:53 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Mon, 27 Jul 2009 21:29:44 +0000 (23:29 +0200)
commita1478cac726f83c5457bffb44189be35aacbc442
treeb4b2bf3ed474ca8b000109ec006b4e92c675ccc0
parent97c1b3a418683f486326f27365cd75a6191ce432
objformat: don't hardcode compiler versions

In the previous commit a fallback to the "custom" compiler driver was
introduced for unknown compilers.  The previous approach hard-coded
known compiler versions, making it more complicated to add new compilers
to base.

This commit changes slightly the behavior for the "custom" compiler
fallback:  The compiler is searched for like before the "custom" change,
and in addition, in case no compiler could be found, the search is
retried for the "custom" compiler driver.  This way we don't have to
hard-code known compiler versions, while a truely non-existing CCVER
will still be handled by the "custom" compiler driver.
usr.bin/objformat/objformat.c