]> git.bitcoin.ninja Git - ldk-java/commitdiff
[C#] Use new X-Lang LTO for C# Windows builds
authorMatt Corallo <git@bluematt.me>
Thu, 1 Feb 2024 19:33:08 +0000 (19:33 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 1 Feb 2024 21:01:50 +0000 (21:01 +0000)
.github/workflows/build.yml

index f6c46f92e3b4761a230e8871402b2fd87fe9bd9b..0ff1d2ca0d2f70d87d5ae30172ba4a941e8dbc9c 100644 (file)
@@ -195,13 +195,14 @@ jobs:
           cd ldk-c-bindings
           export LDK_C_BINDINGS_EXTRA_TARGETS=x86_64-pc-windows-gnu
           export LDK_C_BINDINGS_EXTRA_TARGET_CCS=`pwd`/deterministic-build-wrappers/clang-x86_64-windows
+          export LDK_C_BINDINGS_EXTRA_TARGET_LINK_LTO=true
           ./genbindings.sh ../rust-lightning true
       - name: Remove checked-in source to ensure its correctly checked-in
         run: rm c_sharp/src/org/ldk/enums/*.cs c_sharp/src/org/ldk/impl/*.cs c_sharp/src/org/ldk/structs/*.cs
       - name: Build Windows C# Bindings
         run: |
           export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
-          LDK_TARGET=x86_64-pc-windows-gnu ./genbindings.sh ./ldk-c-bindings/ c_sharp false false
+          LDK_TARGET=x86_64-pc-windows-gnu LDK_TARGET_CPU=sandybridge ./genbindings.sh ./ldk-c-bindings/ c_sharp false false
       - name: Build Linux C# Bindings
         run: |
           export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"