1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-15 14:05:03 -05:00
curl/CMake
Gregor Jasny e5dfc88eb8
cmake: try well-known send/recv signature for Apple
The CMake `try_compile` command is especially slow for
the Xcode generator. With this patch applied it first tests
for the currently used (and Open Group specified) send/recv
signature. In case this fails testing falls-back to the
permutations.

speed-up:

```
time cmake .. -GNinja -DCMAKE_USE_SECTRANSP=ON -DHTTP_ONLY=ON -DCMAKE_USE_LIBSSH2=OFF
before: 11.64s user 11.09s system 55% cpu 40.754 total
after:   7.84s user 6.57s  system 51% cpu 28.074 total
```

```
time cmake .. -GXcode -DCMAKE_USE_SECTRANSP=ON -DHTTP_ONLY=ON -DCMAKE_USE_LIBSSH2=OFF
before: 217.07s user 104.15s system 60% cpu 8:51.79 total
after:  108.76s user  51.80s system 58% cpu 4:32.58 total
```

Closes #7158
2021-06-01 08:44:07 +02:00
..
Platforms configure: remove use of RETSIGTYPE 2021-04-07 16:01:05 +02:00
cmake_uninstall.cmake.in curl.se: new home 2020-11-04 23:59:47 +01:00
CMakeConfigurableFile.in curl.se: new home 2020-11-04 23:59:47 +01:00
curl-config.cmake.in curl.se: new home 2020-11-04 23:59:47 +01:00
CurlSymbolHiding.cmake cmake: don't pass -fvisibility=hidden to clang-cl on Windows 2020-11-10 23:40:33 +01:00
CurlTests.c configure: remove use of RETSIGTYPE 2021-04-07 16:01:05 +02:00
FindBearSSL.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindBrotli.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindCARES.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindGSS.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindLibSSH2.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindMbedTLS.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindNGHTTP2.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindNGHTTP3.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindNGTCP2.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindNSS.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindQUICHE.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindWolfSSL.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
FindZstd.cmake curl.se: new home 2020-11-04 23:59:47 +01:00
Macros.cmake cmake: make CURL_ZLIB a tri-state variable 2020-11-19 13:38:47 +01:00
OtherTests.cmake cmake: try well-known send/recv signature for Apple 2021-06-01 08:44:07 +02:00
Utilities.cmake curl.se: new home 2020-11-04 23:59:47 +01:00