summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/clean/main.lua4
-rw-r--r--xmake/modules/target/action/clean/main.lua4
2 files changed, 6 insertions, 2 deletions
diff --git a/xmake/actions/clean/main.lua b/xmake/actions/clean/main.lua
index 4ff09d592..40c73faa1 100644
--- a/xmake/actions/clean/main.lua
+++ b/xmake/actions/clean/main.lua
@@ -161,8 +161,8 @@ function main()
-- get the target name
local targetname = option.get("target")
- -- config it first
- task.run("config", {target = targetname, require = false, verbose = false})
+ -- local config first
+ config.load()
-- enter project directory
local oldir = os.cd(project.directory())
diff --git a/xmake/modules/target/action/clean/main.lua b/xmake/modules/target/action/clean/main.lua
index 8871ca21f..0335aa648 100644
--- a/xmake/modules/target/action/clean/main.lua
+++ b/xmake/modules/target/action/clean/main.lua
@@ -63,6 +63,10 @@ function main(target)
-- remove all?
if option.get("all") then
+ -- remove config files
+ local _, configfiles = target:configfiles()
+ remove_files(configfiles)
+
-- TODO remove the config.h file (deprecated)
remove_files(target:configheader())