namezis

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: cmd make VS 2017 blocks clean #11058
    namezis
    Participant

    It started to disturb me, so I had a bit more look around, and the simplest fix was to:

    1. Edit debug.mak and release.mak and change USE_DEL_TO_CLEAN to 0 (zero).
    2. Edit Makefile and change clean rule to:

    ifeq ($(USE_DEL_TO_CLEAN),1)
    cmd /C del /S /Q $(BINARYDIR)
    else
    find $(BINARYDIR) -type f ! -name “*.log” -delete
    endif

    This will clean the directory from files except the log file that is created just before the cleanup is started and cannot be deleted until clean is finished, unfortunetly.

    There must be some easy fix for the del method?

     

    in reply to: cmd make VS 2017 blocks clean #11057
    namezis
    Participant

    At second look it seems that space is missing in the following:

    c:\Windows\system32\cmd.exe c:/ del s:/ C:/MinGW/msys/1.0 [missing space] /Q Debug

    The make file has correct syntax:

    clean:
    ifeq ($(USE_DEL_TO_CLEAN),1)
    cmd /C del /S /Q $(BINARYDIR)
    else
    rm -rf $(BINARYDIR)
    endif

     

    The USE_DEL_TO_CLEAN is set to 1 in debug.mak

     

    Where else to fix it?

    in reply to: cmd make VS 2017 blocks clean #11056
    namezis
    Participant

     

    I have encountered the same issue with VS2015 using MinGW.

    When starting clean from project context menu it starts, VisualGDB starts *.cmd script with following lines:

    setlocal
    set errorlevel=dummy
    set errorlevel=
    “C:\Program Files (x86)\Sysprogs\VisualGDB\VisualGDB.exe” /clean “[Path to project]\Project.vcxproj” “/solution:[Path to solution]\Solution.sln” “/config:Debug” “/platform:Win32″
    exit %errorlevel%

    In the above I have removed path and the project and solution name.

    This in turn starts the [vgagent.exe” /b cmd.exe /c “C:\MinGW\msys\1.0\bin\make.exe” CONFIG=Debug clean] and child processes:

    vgagent.exe -> cmd.exe -> make.exe -> sh.exe -> sh.exe -> cmd.exe

    The last process cmd.exe is executed with the following command line:

    c:\Windows\system32\cmd.exe c:/ del s:/ C:/MinGW/msys/1.0/Q Debug

    in the directory of the project where clean was required.

    The process never finishes. In the above command I do not understand what “C:/MinGW/msys/1.0/Q Debug” is about, it looks as somthing unfinished.

     

    Any idea?

     

     

     

     

     

Viewing 3 posts - 1 through 3 (of 3 total)