summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-04 00:51:40 +0800
committerruki <[email protected]>2024-07-04 00:51:40 +0800
commit07f422a285bbd5e7b6959ddf8b1b6a55339f0426 (patch)
tree8714ebea73043db663d82f7b801041b691207936
parentc1802f741f225ef32109fa0f8adc396528a18951 (diff)
fix #5304
-rw-r--r--xmake/core/sandbox/modules/import/core/project/project.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/core/sandbox/modules/import/core/project/project.lua b/xmake/core/sandbox/modules/import/core/project/project.lua
index 401fc9d61..c5f54dc05 100644
--- a/xmake/core/sandbox/modules/import/core/project/project.lua
+++ b/xmake/core/sandbox/modules/import/core/project/project.lua
@@ -200,12 +200,8 @@ end
-- load project targets
function sandbox_core_project.load_targets(opt)
- local loaded = sandbox_core_project._LOADED
- if not loaded then
- sandbox_core_project._LOADED = true
- sandbox_core_project._load_package_rules_for_targets()
- sandbox_core_project._config_targets(opt)
- end
+ sandbox_core_project._load_package_rules_for_targets()
+ sandbox_core_project._config_targets(opt)
end
-- get the filelock of the whole project directory