summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-10-24 20:45:41 +0200
committerArthur LAURENT <[email protected]>2025-10-24 20:55:14 +0200
commitda18615f8926f463e464060fb6789fc58a534c46 (patch)
treee6daadf0d494dc39b2eb312932c99f8179ffccf9 /tests/projects
parent6b4789893214a13f19d6109e9cb6249540bf16f1 (diff)
fix(swift) use -parse-as-library flag only if target is a library or swift.interop.cxxmain is set (to avoir duplicate main symbols in output binary)
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/swift/cxx_interop/xmake.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/projects/swift/cxx_interop/xmake.lua b/tests/projects/swift/cxx_interop/xmake.lua
index cd5ef0469..68f7ede78 100644
--- a/tests/projects/swift/cxx_interop/xmake.lua
+++ b/tests/projects/swift/cxx_interop/xmake.lua
@@ -6,3 +6,4 @@ target("cxx_interop")
set_values("swift.modulename", "SwiftFibonacci")
set_values("swift.interop", "cxx")
set_values("swift.interop.headername", "fibonacci-Swift.h")
+ set_values("swift.interop.cxxmain", true)