diff options
author | Brad King <brad.king@kitware.com> | 2020-05-25 18:12:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-05-25 18:39:40 (GMT) |
commit | 1d21dd0f7cb589fa4491616fc8f362986297757d (patch) | |
tree | cd45144610537b962c7e2c5b358c0871addb33af /.gitignore | |
parent | 7a0125058101569c578a47d5f0091ad20ec55830 (diff) | |
download | CMake-1d21dd0f7cb589fa4491616fc8f362986297757d.zip CMake-1d21dd0f7cb589fa4491616fc8f362986297757d.tar.gz CMake-1d21dd0f7cb589fa4491616fc8f362986297757d.tar.bz2 |
enable_language: Assume compiler works if ABI detection compiles
We run a `try_compile` with a tiny test source to check if the compiler
works so that we can fail early if it does not. When the compiler does
work, we immediately `try_compile` the ABI detection source. In the
common case that both steps work, we gain no useful information from the
first one and the work was wasted.
Re-order the checks to try the ABI detection first. If it works then
assume the compiler works and skip the dedicated check. If the ABI
check fails then proceed with the normal test for a working compiler so
the diagnostic can be shown as before.
Fixes: #18703
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions