summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-10-25 18:53:33 +0200
committerArthur LAURENT <[email protected]>2025-10-25 19:20:35 +0200
commit716bc9fe22b091f57765d894429a7f630e69420e (patch)
tree49e927f04bd5381df702d84b6dfccd2e723a37e3
parent0e219d848ad77963bceb40380c373ba214e3f54b (diff)
nfc(swift) use rule_enable instead to improve performance when swift.interop rule is not used
-rw-r--r--xmake/rules/swift/xmake.lua7
1 files 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")