]> The Tcpdump Group git mirrors - tcpdump/commit
CI: Refine C compilers handling. [skip appveyor]
authorDenis Ovsienko <[email protected]>
Sun, 25 Jul 2021 22:06:11 +0000 (23:06 +0100)
committerDenis Ovsienko <[email protected]>
Wed, 29 Sep 2021 14:08:36 +0000 (15:08 +0100)
commit10584ece833f52a029673126f921a7e1c982c5ba
treed928c0449abaa1f965d8ec4707228fc67d058a03
parent66eceedff9118852126d6ba34c84928203717fb4
CI: Refine C compilers handling. [skip appveyor]

In build_common.sh add minimal heuristics to print_cc_version() to help
it run the right command; add cc_id() and cc_werr_cflags() to pick the
right CFLAGS for the current compiler instead of the previously
hard-coded "-Werror". Add some comments.

In build.sh remove the CFLAGS exemptions for AIX and Solaris 9 builds,
which are in a better shape now and can complete specific subsets of the
full matrix without a warning. Set CFLAGS from cc_werr_cflags() to make
the best effort to catch as many warnings as possible. Let's see how well
that works.

(cherry picked from commit cdc3bc2359dc214dfedf5fc5dec4712058af7d33)
build.sh
build_common.sh