]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common : clarify HTTPS build options in error message (#19103)
authorDaniel Bevenius <redacted>
Tue, 27 Jan 2026 05:16:00 +0000 (06:16 +0100)
committerGitHub <redacted>
Tue, 27 Jan 2026 05:16:00 +0000 (06:16 +0100)
* common : clarify HTTPS build options in error message

This commit updates the https error message to provide clearer
instructions for users who encounter the "HTTPS is not supported" error.

The motivation for this is that it might not be clear to users that only
one of these options are needed to enable HTTPS support.
The LLAMA_OPENSSL option is also added to the message to cover all
possible build configurations.

* clarify that OpenSSL is the default for HTTPS support

common/http.h

index 7c683aafcf29a01723294c7dc7e9f169b87a18e0..e8ed56f952b5c61e9e1e55abd640e4bc345f9c93 100644 (file)
@@ -60,10 +60,10 @@ static std::pair<httplib::Client, common_http_url> common_http_client(const std:
 #ifndef CPPHTTPLIB_OPENSSL_SUPPORT
     if (parts.scheme == "https") {
         throw std::runtime_error(
-            "HTTPS is not supported. Please rebuild with:\n"
+            "HTTPS is not supported. Please rebuild with one of:\n"
             "  -DLLAMA_BUILD_BORINGSSL=ON\n"
             "  -DLLAMA_BUILD_LIBRESSL=ON\n"
-            "or ensure dev files of an OpenSSL-compatible library are available when building."
+            "  -DLLAMA_OPENSSL=ON (default, requires OpenSSL dev files installed)"
         );
     }
 #endif