15 lines
428 B
Diff
15 lines
428 B
Diff
--- a/BUILD.gn
|
|
+++ b/BUILD.gn
|
|
@@ -170,6 +170,11 @@
|
|
defines = [ "PROTOBUF_ENABLE_DEBUG_LOGGING_MAY_LEAK_PII=0" ]
|
|
cflags = []
|
|
ldflags = []
|
|
+
|
|
+ # Android and Asahi ARM64 must load on kernels with 16-KiB pages.
|
|
+ if (current_cpu == "arm64" && (is_linux || is_android)) {
|
|
+ ldflags += [ "-Wl,-z,max-page-size=16384" ]
|
|
+ }
|
|
|
|
if (rtc_objc_prefix != "") {
|
|
defines += [ "RTC_OBJC_TYPE_PREFIX=${rtc_objc_prefix}" ]
|