Skip to content

Commit 14ed92a

Browse files
committed
[C#] Use new X-Lang LTO for C# Windows builds
1 parent e38583b commit 14ed92a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,14 @@ jobs:
195195
cd ldk-c-bindings
196196
export LDK_C_BINDINGS_EXTRA_TARGETS=x86_64-pc-windows-gnu
197197
export LDK_C_BINDINGS_EXTRA_TARGET_CCS=`pwd`/deterministic-build-wrappers/clang-x86_64-windows
198+
export LDK_C_BINDINGS_EXTRA_TARGET_LINK_LTO=true
198199
./genbindings.sh ../rust-lightning true
199200
- name: Remove checked-in source to ensure its correctly checked-in
200201
run: rm c_sharp/src/org/ldk/enums/*.cs c_sharp/src/org/ldk/impl/*.cs c_sharp/src/org/ldk/structs/*.cs
201202
- name: Build Windows C# Bindings
202203
run: |
203204
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"
204-
LDK_TARGET=x86_64-pc-windows-gnu ./genbindings.sh ./ldk-c-bindings/ c_sharp false false
205+
LDK_TARGET=x86_64-pc-windows-gnu LDK_TARGET_CPU=sandybridge ./genbindings.sh ./ldk-c-bindings/ c_sharp false false
205206
- name: Build Linux C# Bindings
206207
run: |
207208
export LDK_GARBAGECOLLECTED_GIT_OVERRIDE="$(git describe --tag HEAD)"

0 commit comments

Comments
 (0)