@@ -306,12 +306,15 @@ ifeq ($(UNAME_M),$(filter $(UNAME_M),x86_64 i686 amd64))
306
306
# MK_CXXFLAGS += -mssse3
307
307
endif
308
308
309
- # The stack is only 16-byte aligned on Windows, so don't let gcc emit aligned moves.
310
- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412
311
- # https://github.com/ggerganov/llama.cpp/issues/2922
312
309
ifneq '' '$(findstring mingw,$(shell $(CC ) -dumpmachine) ) '
310
+ # The stack is only 16-byte aligned on Windows, so don't let gcc emit aligned moves.
311
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412
312
+ # https://github.com/ggerganov/llama.cpp/issues/2922
313
313
MK_CFLAGS += -Xassembler -muse-unaligned-vector-move
314
314
MK_CXXFLAGS += -Xassembler -muse-unaligned-vector-move
315
+
316
+ # Target Windows 8 for PrefetchVirtualMemory
317
+ MK_CPPFLAGS += -D_WIN32_WINNT=0x602
315
318
endif
316
319
317
320
ifneq ($(filter aarch64% ,$(UNAME_M ) ) ,)
@@ -745,16 +748,16 @@ tests/test-quantize-perf: tests/test-quantize-perf.cpp ggml.o $(OBJS)
745
748
tests/test-sampling : tests/test-sampling.cpp ggml.o llama.o $(OBJS )
746
749
$(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
747
750
748
- tests/test-tokenizer-0-falcon : tests/test-tokenizer-0-falcon.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
751
+ tests/test-tokenizer-0-falcon : tests/test-tokenizer-0-falcon.cpp ggml.o llama.o $(COMMON_DEPS ) console.o $(OBJS )
749
752
$(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
750
753
751
- tests/test-tokenizer-0-llama : tests/test-tokenizer-0-llama.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
754
+ tests/test-tokenizer-0-llama : tests/test-tokenizer-0-llama.cpp ggml.o llama.o $(COMMON_DEPS ) console.o $(OBJS )
752
755
$(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
753
756
754
- tests/test-tokenizer-1-bpe : tests/test-tokenizer-1-bpe.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
757
+ tests/test-tokenizer-1-bpe : tests/test-tokenizer-1-bpe.cpp ggml.o llama.o $(COMMON_DEPS ) console.o $(OBJS )
755
758
$(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
756
759
757
- tests/test-tokenizer-1-llama : tests/test-tokenizer-1-llama.cpp ggml.o llama.o $(COMMON_DEPS ) $(OBJS )
760
+ tests/test-tokenizer-1-llama : tests/test-tokenizer-1-llama.cpp ggml.o llama.o $(COMMON_DEPS ) console.o $(OBJS )
758
761
$(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
759
762
760
763
tests/test-rope : tests/test-rope.cpp ggml.o $(OBJS )
0 commit comments