]> git.bitcoin.ninja Git - ldk-swift-linux/commitdiff
Support addrsan
authorMatt Corallo <git@bluematt.me>
Wed, 28 Jul 2021 00:38:22 +0000 (00:38 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 28 Jul 2021 00:38:22 +0000 (00:38 +0000)
LDKSwift/Package.swift

index 018bf23ccad3848e9bedcc8d4583857beb1a343a..4ecd9d30923d7dd4c231620a8194b2794da40d1b 100644 (file)
@@ -21,7 +21,8 @@ let package = Package(
             dependencies: ["LDKCHeaders"],
             linkerSettings: [
                 .linkedLibrary("/root/ldk-c-bindings/lightning-c-bindings/target/debug/libldk.a"),
-                .linkedLibrary("/root/ldk-c-bindings/lightning-c-bindings/ldk_net.o")
+                .linkedLibrary("/root/ldk-c-bindings/lightning-c-bindings/ldk_net.o"),
+                .linkedLibrary("/usr/lib/llvm-11/lib/clang/11.0.0/lib/linux/libclang_rt.asan-x86_64.a")
             ]),
         .testTarget(
             name: "LDKSwiftTests",