Simplify SIMD compiler flag construction
commitdeef4d6e02a67b3224f9c856301423071335033c
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 25 May 2016 13:56:33 +0000 (25 15:56 +0200)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 8 Jul 2016 13:39:32 +0000 (8 15:39 +0200)
tree6a1672c74fd572f25e53428e91727a356bb37c81
parent0d4ea6033cba8cbfe6505f399ffd65e9aa412d3e
Simplify SIMD compiler flag construction

Lots of code duplication for handling both C and C++ is removed. Some
new helper functions handle the language-specific aspects separately
from the main logic. Introduced the notion of preparing the toolchain.
Removed one lot of status messages now that the try_compile status
message is more descriptive that it is checking for flags for SIMD
support.

Moved checking code that caters for ancient clang for AVX_128_FMA to a
common point, eliminating some variables. Moved that point to before
the AVX_128_FMA compiler flag tests, which seems more likely to work
in this case. This unlikely combination is of little significance,
however.

Change-Id: I5377a7951f5414ee52c4960fe63c999f55ff5109
cmake/gmxFindFlagsForSource.cmake
cmake/gmxManageSimd.cmake
cmake/gmxTestCompilerProblems.cmake