Skip to content

Commit 0212ad4

Browse files
committed
Update Makefile for Windows platform: modify LDFLAGS to include OpenMP support and adjust shared library flags
1 parent 4db4431 commit 0212ad4

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ MINIAUDIO_LIBS = $(BUILD_MINIAUDIO)/libminiaudio.a
6666
# Platform-specific settings
6767
ifeq ($(PLATFORM),windows)
6868
TARGET := $(DIST_DIR)/ai.dll
69-
LDFLAGS += -lbcrypt -static-libgcc -Wl,--push-state,-Bstatic,-lstdc++,-lwinpthread,--pop-state -shared
69+
LDFLAGS += -lbcrypt -lgomp -static-libgcc -Wl,--push-state,-Bstatic,-lstdc++,-lwinpthread,--pop-state -shared
7070
DEF_FILE := $(BUILD_DIR)/ai.def
71-
LLAMA_OPTIONS += -DGGML_OPENMP=OFF
72-
WHISPER_OPTIONS += -DGGML_OPENMP=OFF
7371
STRIP = strip --strip-unneeded $@
7472
else ifeq ($(PLATFORM),macos)
7573
TARGET := $(DIST_DIR)/ai.dylib

0 commit comments

Comments
 (0)