Skip to content

Commit 2c6fabd

Browse files
committed
fix(build): enforce release build type for LLAMA, WHISPER, and MINIAUDIO when using SYCL on Windows
1 parent b6838f1 commit 2c6fabd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ endif
7979
LLAMA_OPTIONS = $(LLAMA) -DBUILD_SHARED_LIBS=OFF -DLLAMA_CURL=OFF -DLLAMA_BUILD_EXAMPLES=OFF -DLLAMA_BUILD_TESTS=OFF -DLLAMA_BUILD_TOOLS=OFF -DLLAMA_BUILD_SERVER=OFF -DGGML_RPC=OFF
8080
WHISPER_OPTIONS = $(WHISPER) -DBUILD_SHARED_LIBS=OFF -DWHISPER_BUILD_EXAMPLES=OFF -DWHISPER_BUILD_TESTS=OFF -DWHISPER_BUILD_SERVER=OFF -DWHISPER_RPC=OFF
8181
MINIAUDIO_OPTIONS = $(MINIAUDIO) -DBUILD_SHARED_LIBS=OFF -DMINIAUDIO_BUILD_EXAMPLES=OFF -DMINIAUDIO_BUILD_TESTS=OFF
82+
# Force release build for SYCL to avoid debug runtime issues
83+
ifneq (,$(findstring SYCL,$(LLAMA)))
84+
ifeq ($(PLATFORM),windows)
85+
LLAMA_OPTIONS += -DCMAKE_BUILD_TYPE=Release
86+
WHISPER_OPTIONS += -DCMAKE_BUILD_TYPE=Release
87+
MINIAUDIO_OPTIONS += -DCMAKE_BUILD_TYPE=Release
88+
endif
89+
endif
8290
# MinGW produces .a files without lib prefix, use -l:filename.a syntax
8391
ifeq ($(PLATFORM),windows)
8492
L = -l:

0 commit comments

Comments
 (0)