summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-10-24 00:03:20 +0200
committerArthur LAURENT <[email protected]>2025-10-24 00:03:20 +0200
commit072000e5d38b878e8ba929a232097d3267478acb (patch)
tree35915466d74f6d2e536c07f31660a14b13dfeed5
parent9a88678b4fc9ca909d78936eb327f2f67cee6926 (diff)
fix(swift) prevent -std=c++26 with swift.interop as it's not currently working with objective-c++ sdk
-rw-r--r--xmake/rules/swift/xmake.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/swift/xmake.lua b/xmake/rules/swift/xmake.lua
index 367b7572c..8bb168679 100644
--- a/xmake/rules/swift/xmake.lua
+++ b/xmake/rules/swift/xmake.lua
@@ -90,7 +90,8 @@ rule("swift.interop", function()
or language:startswith("cxx")
or language:startswith("gnu++")
or language:startswith("gnuxx") then
- local v = compinst:languageflags(language)
+ -- c++26 currently prevent compilation of swift modules
+ local v = compinst:languageflags(language:gsub("26", "23"):gsub("latest", "23"))
if v then return v end
end
end