Skip to content

Commit e434f3b

Browse files
authored
Merge pull request #155 from TheBlueMatt/main
Cut 0.0.121.3
2 parents e4d9e84 + 916f358 commit e434f3b

23 files changed

+27
-24
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ jobs:
576576
android:
577577
runs-on: ubuntu-latest
578578
# Frankly, I'm not really sure why debian and ubuntu differ in the results here, they really shouldn't
579-
container: debian:bullseye
579+
container: debian:bookworm
580580
strategy:
581581
fail-fast: false
582582
steps:

genbindings.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,12 @@ fi
8181

8282
COMMON_COMPILE="$CC -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wno-nullability-completeness -Wno-pointer-sign -Wdate-time -ffile-prefix-map=$(pwd)="
8383
COMMON_CC=""
84-
if [[ "$TARGET_STRING" != *"android" ]]; then
85-
[[ "$TARGET_STRING" != "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING -mcpu=$LDK_TARGET_CPU"
86-
[[ "$TARGET_STRING" = "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING -march=$LDK_TARGET_CPU -mtune=$LDK_TARGET_CPU"
84+
if [[ "$TARGET_STRING" != *"android" && "$TARGET_STRING" != *"androideabi" ]]; then
85+
[[ "$TARGET_STRING" != "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING"
86+
[[ "$TARGET_STRING" = "x86"* ]] && COMMON_CC="$COMMON_CC --target=$TARGET_STRING"
8787
fi
88+
[[ "$TARGET_STRING" != "x86"* ]] && COMMON_CC="$COMMON_CC -mcpu=$LDK_TARGET_CPU"
89+
[[ "$TARGET_STRING" = "x86"* ]] && COMMON_CC="$COMMON_CC -march=$LDK_TARGET_CPU -mtune=$LDK_TARGET_CPU"
8890
[ "$IS_MAC" = "true" -a "$MACOS_SDK" != "" ] && COMMON_COMPILE="$COMMON_COMPILE -isysroot $MACOS_SDK"
8991

9092
DEBUG_ARG="$3"

src/main/java/org/ldk/enums/BlindedFailure.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ public enum BlindedFailure {
1616
*/
1717
LDKBlindedFailure_FromBlindedNode,
1818
; static native void init();
19-
static { init(); }
19+
static { org.ldk.impl.bindings.run_statics(); init(); }
2020
}

src/main/java/org/ldk/enums/Bolt11SemanticError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ public enum Bolt11SemanticError {
4747
*/
4848
LDKBolt11SemanticError_ImpreciseAmount,
4949
; static native void init();
50-
static { init(); }
50+
static { org.ldk.impl.bindings.run_statics(); init(); }
5151
}

src/main/java/org/ldk/enums/Bolt12SemanticError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ public enum Bolt12SemanticError {
113113
*/
114114
LDKBolt12SemanticError_MissingSignature,
115115
; static native void init();
116-
static { init(); }
116+
static { org.ldk.impl.bindings.run_statics(); init(); }
117117
}

src/main/java/org/ldk/enums/COption_NoneZ.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ public enum COption_NoneZ {
1313
*/
1414
LDKCOption_NoneZ_None,
1515
; static native void init();
16-
static { init(); }
16+
static { org.ldk.impl.bindings.run_statics(); init(); }
1717
}

src/main/java/org/ldk/enums/ChannelMonitorUpdateStatus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ public enum ChannelMonitorUpdateStatus {
7474
*/
7575
LDKChannelMonitorUpdateStatus_UnrecoverableError,
7676
; static native void init();
77-
static { init(); }
77+
static { org.ldk.impl.bindings.run_statics(); init(); }
7878
}

src/main/java/org/ldk/enums/ChannelShutdownState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ public enum ChannelShutdownState {
3232
*/
3333
LDKChannelShutdownState_ShutdownComplete,
3434
; static native void init();
35-
static { init(); }
35+
static { org.ldk.impl.bindings.run_statics(); init(); }
3636
}

src/main/java/org/ldk/enums/ConfirmationTarget.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,5 @@ public enum ConfirmationTarget {
9393
*/
9494
LDKConfirmationTarget_ChannelCloseMinimum,
9595
; static native void init();
96-
static { init(); }
96+
static { org.ldk.impl.bindings.run_statics(); init(); }
9797
}

src/main/java/org/ldk/enums/CreationError.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ public enum CreationError {
3434
*/
3535
LDKCreationError_MinFinalCltvExpiryDeltaTooShort,
3636
; static native void init();
37-
static { init(); }
37+
static { org.ldk.impl.bindings.run_statics(); init(); }
3838
}

0 commit comments

Comments
 (0)