diff options
| author | hachem <im@hachem.wtf> | 2026-08-23 23:03:22 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-23 23:03:22 +0200 |
| commit | 7ae22084c74cbe0c127e0ea1c96ec22a1f47d221 (patch) | |
| tree | 61824ada272ffbc8dba0906b877f3dcae1b52d69 | |
| parent | 90ff03c2fdffc09ddb26bdc7e32c3968a6d274fb (diff) | |
[fix]: remove warnings and reimplement clean
| -rw-r--r-- | premake5.lua | 26 |
1 files 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" |
