Skip to content

Commit 65d6438

Browse files
committed
fix(build): update link command to use cmd.exe for MSVC compatibility
1 parent 62704e1 commit 65d6438

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ all: $(TARGET)
283283
# Loadable library
284284
$(TARGET): $(OBJ_FILES) $(DEF_FILE) $(LLAMA_LIBS) $(WHISPER_LIBS) $(MINIAUDIO_LIBS)
285285
ifeq ($(USE_MSVC),1)
286-
"$(VCToolsInstallDir)bin\Hostx64\x64\link.exe" /nologo $(LDFLAGS) /DEF:$(DEF_FILE) /OUT:$@ $(OBJ_FILES) $(LLAMA_LIBS) $(WHISPER_LIBS) $(MINIAUDIO_LIBS) $(MSVC_LIBS)
286+
cmd.exe /C "\"$(VCToolsInstallDir)bin\Hostx64\x64\link.exe\" /nologo $(LDFLAGS) /DEF:$(DEF_FILE) /OUT:$@ $(OBJ_FILES) $(LLAMA_LIBS) $(WHISPER_LIBS) $(MINIAUDIO_LIBS) $(MSVC_LIBS)"
287287
else
288288
$(CXX) $(OBJ_FILES) $(DEF_FILE) -o $@ $(LDFLAGS)
289289
ifeq ($(PLATFORM),windows)

0 commit comments

Comments
 (0)