From 7ae22084c74cbe0c127e0ea1c96ec22a1f47d221 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 23 Aug 2026 23:03:22 +0200 Subject: [fix]: remove warnings and reimplement clean --- premake5.lua | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/premake5.lua b/premake5.lua index f2d840e..2d2b0c6 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1,3 +1,21 @@ +-- premake5's built-in `clean` action is unported ("has not yet been ported"), +-- so provide our own: wipe the build output and the generated project files. +newaction { + trigger = "clean", + description = "Remove build output (bin, bin-int) and generated project files", + execute = function() + os.rmdir("bin") + os.rmdir("bin-int") + os.remove("Makefile") + for _, f in ipairs(os.matchfiles("*.make")) do os.remove(f) end + -- runtime state (all gitignored; the app regenerates it on next run) + os.rmdir("logs") + os.remove("config/settings.toml") + os.remove("imgui.ini") + print("Cleaned: bin/, bin-int/, Makefile, *.make, logs/, config/settings.toml, imgui.ini") + end +} + workspace "Donut" architecture "x64" startproject "Donut" @@ -9,10 +27,7 @@ workspace "Donut" "Dist" } - flags - { - "MultiProcessorCompile" - } + multiprocessorcompile "On" filter "system:windows" defines "DONUT_WINDOWS" @@ -202,7 +217,8 @@ project "GLFW" runtime "Debug" symbols "on" sanitize { "Address" } - flags { "NoRuntimeChecks", "NoIncrementalLink" } + runtimechecks "Off" + incrementallink "Off" filter "configurations:Release" runtime "Release" -- cgit v1.3