diff options
| author | Arthur LAURENT <[email protected]> | 2025-10-24 20:45:41 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-10-24 20:55:14 +0200 |
| commit | da18615f8926f463e464060fb6789fc58a534c46 (patch) | |
| tree | e6daadf0d494dc39b2eb312932c99f8179ffccf9 /tests/projects | |
| parent | 6b4789893214a13f19d6109e9cb6249540bf16f1 (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.lua | 1 |
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) |
