diff options
author | Brad King <brad.king@kitware.com> | 2022-02-28 17:53:15 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-02-28 17:53:15 (GMT) |
commit | c6da90bd39f3e03ba6a2a4cfac0d179e04e0b236 (patch) | |
tree | da6a441aef76b03f1a52a96cfdfe5a1fe3f3656e /Modules/CMakeASMCompiler.cmake.in | |
parent | 6fe5df13c274441a1e1a1b10e558ef46db60bf4b (diff) | |
download | CMake-c6da90bd39f3e03ba6a2a4cfac0d179e04e0b236.zip CMake-c6da90bd39f3e03ba6a2a4cfac0d179e04e0b236.tar.gz CMake-c6da90bd39f3e03ba6a2a4cfac0d179e04e0b236.tar.bz2 |
FindThreads: Revert "Honor THREADS_PREFER_PTHREAD_FLAG when ... in libc"
Revert commit 5efb6fb516 (FindThreads: Honor THREADS_PREFER_PTHREAD_FLAG
when pthread is found in libc, 2021-11-03, v3.21.5~4^2). The check for
the `-pthread` flag can pass on compilers like XL, that interprets it as
`-p -t hread` and returns zero. Prior to that commit, we did not use
the check in the `CMAKE_HAVE_LIBC_PTHREAD` code path. Now we do, it
succeeds, and we incorrectly add the `-pthread` flag for XL.
This change was backported to the 3.21 and 3.22 release series long
after they initially came out. Since there may be more cases where we
now add `-pthread` incorrectly, it is simplest to revert the change in
all release series pending further investigation.
Fixes: #23270
Diffstat (limited to 'Modules/CMakeASMCompiler.cmake.in')
0 files changed, 0 insertions, 0 deletions