Skip to content

Commit 9548514

Browse files
migrated CDataWGo into new package
Migrated as executable target. This makes the target executable from the command line using swift run go-swift. The idea is to make a pre-build plugin and use it before test launch
1 parent 8ec6416 commit 9548514

File tree

7 files changed

+8
-45
lines changed

7 files changed

+8
-45
lines changed

CDataWGo/Package.swift

Lines changed: 0 additions & 43 deletions
This file was deleted.

Package.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ let package = Package(
6767
// build: .unsafeFlags(["-warnings-as-errors"])
6868
]
6969
),
70+
.executableTarget(
71+
name: "go-swift",
72+
dependencies: [
73+
.target(name: "Arrow"),
74+
]
75+
),
7076
.testTarget(
7177
name: "ArrowTests",
7278
dependencies: ["Arrow", "ArrowC"],
File renamed without changes.
File renamed without changes.
File renamed without changes.

CDataWGo/include/go_swift.h renamed to Sources/go-swift/include/go_swift.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
#include "../../Arrow/Sources/ArrowC/include/ArrowCData.h"
18+
#include "../ArrowC/include/ArrowCData.h"
1919

2020
void stringTypeFromSwift(struct ArrowSchema*);
2121

@@ -27,4 +27,4 @@ void arrayStringFromSwift(struct ArrowArray*);
2727

2828
void arrayIntToSwift(struct ArrowArray* array);
2929

30-
void arrayStringToSwift(struct ArrowArray* array);
30+
void arrayStringToSwift(struct ArrowArray* array);
File renamed without changes.

0 commit comments

Comments
 (0)