summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-06-01 00:41:12 +0800
committerruki <[email protected]>2022-06-01 00:41:12 +0800
commitb6ca70e439660dea1f34bff8bd2182b614168759 (patch)
treeeab6b54c11392d406883e91ae7d0691511a43b87
parent1fd784fb9e93d8ff458a55146af2f71e0d5671fb (diff)
remove target all
-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
--