From 716bc9fe22b091f57765d894429a7f630e69420e Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Sat, 25 Oct 2025 18:53:33 +0200 Subject: nfc(swift) use rule_enable instead to improve performance when swift.interop rule is not used --- xmake/rules/swift/xmake.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xmake/rules/swift/xmake.lua b/xmake/rules/swift/xmake.lua index 2b318e070..afda2565b 100644 --- a/xmake/rules/swift/xmake.lua +++ b/xmake/rules/swift/xmake.lua @@ -27,6 +27,7 @@ rule("swift.interop", function() import("core.base.json") if not target:values("swift.interop") then + target:rule_enable("swift.interop", false) return end @@ -43,6 +44,7 @@ rule("swift.interop", function() end end if not enabled then + target:rule_enable("swift.interop", false) return end @@ -69,11 +71,6 @@ rule("swift.interop", function() end) on_prepare_files(function(target, jobgraph, sourcebatch, opt) - - if not target:data("swift.interop") then - return - end - import("utils.progress") import("core.base.option") import("core.language.language") -- cgit v1.3.1