premake / premake-core

Premake
https://premake.github.io/
BSD 3-Clause "New" or "Revised" License
3.17k stars 617 forks source link

Problems with SHELL=cmd and mingw32-make #2225

Open ghost opened 1 month ago

ghost commented 1 month ago

If there are too many objects, the clean command will fail.

Discovered when building this project:

https://github.com/SpartanJ/eepp

This generated code is problematic:

    $(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
    $(SILENT) if exist $(subst /,\\,$(GENERATED)) del /s /q $(subst /,\\,$(GENERATED))
    $(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
ghost commented 1 month ago

To be clear, it's trying to execute the object files (.o extension) instead of deleting them. This is extremely hard to debug since there is no --verbose switch or something like that.