Skip to content

Commit 5eac234

Browse files
committed
Replace forced BoringSSL build with OpenSSL option
Previously BoringSSL was forced on Windows/macOS platforms. Now enable OpenSSL support by default instead, allowing use of system OpenSSL and avoiding large BoringSSL downloads. Signed-off-by: JamePeng <jame_peng@sina.com>
1 parent 6ee17c0 commit 5eac234

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ if (LLAMA_BUILD)
7171
# Disable building curl support
7272
set(LLAMA_CURL OFF CACHE BOOL "llama.cpp: enable curl" FORCE)
7373

74-
if (WIN32 OR APPLE)
75-
# Enable build and link BoringSSL only on Windows and macOS
76-
set(LLAMA_BUILD_BORINGSSL ON CACHE BOOL "llama.cpp: build and link BoringSSL" FORCE)
77-
endif()
74+
# Enable build and link OpenSSL
75+
set(LLAMA_OPENSSL ON CACHE BOOL "llama.cpp: build and link OpenSSL" FORCE)
7876

7977
# Architecture detection and settings for Apple platforms
8078
if (APPLE)

0 commit comments

Comments
 (0)