File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,13 @@ if let bindingsBase = getenv("LDK_C_BINDINGS_BASE") {
9
9
cBindingsBase = String ( utf8String: bindingsBase) !
10
10
}
11
11
12
- let linkerSettings : [ PackageDescription . LinkerSetting ] = [
13
- . linkedLibrary( cBindingsBase + " /lightning-c-bindings/target/debug/libldk.a " )
12
+ var fileExtension = " .dylib "
13
+ #if os(Linux)
14
+ fileExtension = " .a "
15
+ #endif
16
+
17
+ var linkerSettings : [ PackageDescription . LinkerSetting ] = [
18
+ . linkedLibrary( " \( cBindingsBase) /lightning-c-bindings/target/debug/libldk \( fileExtension) " )
14
19
]
15
20
16
21
#if os(Linux)
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ LDK_SUBDIRECTORY="$LDK_DIRECTORY/lightning-c-bindings"
10
10
11
11
if [[ " ${MOUNT_CI_FOLDER} " = " true" ]]; then
12
12
# use for direct ci folder access
13
- cp -R bindings/batteries ci/LDKSwift/Sources/LDKSwift
13
+ # cp -R bindings/batteries ci/LDKSwift/Sources/LDKSwift
14
14
# docker run --name "swift-generator-shell" -e MOUNTED_CI_FOLDER=true -i -v $PROJECT_DIRECTORY/ci:/ci -v $LDK_DIRECTORY:/ldk-c-bindings --rm -t swift-generation-ci /bin/bash
15
15
docker run --name " swift-generator-shell" -e MOUNTED_CI_FOLDER=true -i -v $PROJECT_DIRECTORY /ci:/ci -v $LDK_DIRECTORY :/ldk-c-bindings -v $PROJECT_DIRECTORY /src:/src --rm -t swift-generation-ci /bin/bash
16
16
elif [ " ${MOUNT_CI_FOLDER} " = " false" ]; then
You can’t perform that action at this time.
0 commit comments