Skip to content

Commit

Permalink
fix: windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed Jun 17, 2024
1 parent ffef6b3 commit 4f31dd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ else
endif

ifdef DLLAMA_VULKAN
ifeq ($(OS),Windows_NT)
LIBS += -L$(VK_SDK_PATH)\lib -lvulkan-1
OBJS += accelerator-vulkan.o
CXXFLAGS += -DDLLAMA_VULKAN -I$(VK_SDK_PATH)\include
else
LIBS += -lvulkan
OBJS += accelerator-vulkan.o
CXXFLAGS += -DDLLAMA_VULKAN
endif

accelerator-vulkan.o: src/accelerator-vulkan.cpp
$(CXX) $(CXXFLAGS) -c src/accelerator-vulkan.cpp -o accelerator-vulkan.o
Expand Down

0 comments on commit 4f31dd4

Please sign in to comment.