summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/config/main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua
index 62c259219..823ba08de 100644
--- a/xmake/actions/config/main.lua
+++ b/xmake/actions/config/main.lua
@@ -112,7 +112,7 @@ end
-- check targets
function _check_targets(targetname)
assert(not project.is_loaded(), "project and targets may have been loaded early!")
- if targetname == "all" then
+ if not targetname then
for _, target in pairs(project.targets()) do
_check_target(target)
end
@@ -176,7 +176,7 @@ end
-- config targets
function _config_targets(targetname)
- if targetname == "all" then
+ if not targetname then
for _, target in ipairs(project.ordertargets()) do
if target:is_enabled() then
_config_target(target)
@@ -289,7 +289,7 @@ force to build in current directory via run `xmake -P .`]], os.projectdir())
end
-- the target name
- local targetname = option.get("target") or "all"
+ local targetname = option.get("target")
-- load the project configuration
--