solenv/gbuild/platform/com_MSC_class.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0fd4935e142e3366717dcd809fe6ea60026f0608
Author:     Mike Kaganski <[email protected]>
AuthorDate: Sun Oct 19 14:51:29 2025 +0200
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sun Oct 19 15:50:34 2025 +0200

    fix 'make run' on Windows with WSL
    
    Failed like this:
    
      $ LANG=C make debugrun verbose=t
      C:/Users/mikek/bin/make.exe -j 24  -r -f C:/lo/core/Makefile.gbuild   
debugrun
      make[1]: Entering directory 'C:/lo/build'
      printf "
Attach the debugger to soffice.bin

"
    
      Attach the debugger to soffice.bin
    
      OFFICESCRIPT=`mktemp` && printf "C:/lo/build/instdir/program/soffice.exe" 
> ${OFFICESCRIPT} && printf " --norestore --nologo '--accept=pipe,name=;urp;'
" >> ${OFFICESCRIPT} && C:/Program Files/Git/usr/bin/sh.exe ${OFFICESCRIPT} && 
rm ${OFFICESCRIPT}
      /usr/bin/sh: line 1: C:/Program: No such file or directory
    
    Change-Id: I02ebc7ef8b77ccc69a3c64e121b1d4adad7e6003
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/192669
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/solenv/gbuild/platform/com_MSC_class.mk 
b/solenv/gbuild/platform/com_MSC_class.mk
index 117e2485adb9..b56629fff157 100644
--- a/solenv/gbuild/platform/com_MSC_class.mk
+++ b/solenv/gbuild/platform/com_MSC_class.mk
@@ -562,7 +562,7 @@ printf "
Attach the debugger to soffice.bin

"
 OFFICESCRIPT=`mktemp` && \
 printf "$(INSTROOT)/$(LIBO_BIN_FOLDER)/soffice.exe" > $${OFFICESCRIPT} && \
 printf " --norestore --nologo '--accept=pipe,name=$(USER);urp;'
" >> $${OFFICESCRIPT} && \
-$(SHELL) $${OFFICESCRIPT} && \
+"$(SHELL)" $${OFFICESCRIPT} && \
 rm $${OFFICESCRIPT}
 endef
 

Reply via email to