Skip to content

Commit 83aa3f1

Browse files
committed
protobuf-native: Add support for iOS/arm64
Signed-off-by: Johannes Zottele <[email protected]>
1 parent 3b7f3d3 commit 83aa3f1

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

cinterop-c/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# we build the cc_static library bundled with all dependencies
2-
build --experimental_cc_static_library
2+
build --experimental_cc_static_library --experimental_platform_in_output_dir
33

44
build:release --compilation_mode=opt --strip=always

cinterop-c/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@
1212
/.aswb/
1313
/.clwb/
1414
.idea/
15+
16+
out/

protobuf/protobuf-core/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ kotlin {
6161
)
6262
extraOpts(
6363
"-libraryPath", "${cinteropCLib.resolve("bazel-out/darwin_arm64-opt/bin")}",
64+
"-libraryPath", "${cinteropCLib.resolve("out")}",
6465
)
6566
}
6667
}

protobuf/protobuf-core/gradle.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
kotlinx.rpc.exclude.wasmWasi=true
55
kotlinx.rpc.exclude.js=true
66
kotlinx.rpc.exclude.wasmJs=true
7-
kotlinx.rpc.exclude.iosArm64=true
87
kotlinx.rpc.exclude.iosX64=true
9-
kotlinx.rpc.exclude.iosSimulatorArm64=true
108
kotlinx.rpc.exclude.linuxArm64=true
119
kotlinx.rpc.exclude.linuxX64=true
1210
kotlinx.rpc.exclude.macosX64=true

protobuf/protobuf-core/src/nativeInterop/cinterop/libprotowire.def

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ headerFilter = protowire.h
33

44
noStringConversion = pw_encoder_write_string
55

6-
staticLibraries = libprotowire_static.a
6+
7+
staticLibraries.macos_arm64 = libprotowire_static.macos_arm64.a
8+
staticLibraries.ios_arm64 = libprotowire_static.ios_arm64.a
9+
staticLibraries.ios_simulator_arm64 = libprotowire_static.ios_sim_arm64.a

0 commit comments

Comments
 (0)