android fix, and add commented ldflags

This commit is contained in:
Alexander Frick 2023-06-22 21:38:34 -05:00
parent 48fa3e1141
commit 3456aca519
2 changed files with 6 additions and 2 deletions

View file

@ -46,7 +46,7 @@ config("compiler") {
# Reduce the page size from 65536 in order to reduce binary size slightly
# by shrinking the alignment gap between segments. This also causes all
# segments to be mapped adjacently, which breakpad relies on.
cflags += [ "-march=armv8-a", "-mtune=generic-armv8-a", ]
cflags += [ "-mfloat-abi=hard", "-march=armv8-a+simd", "-mfpu=neon", ]
ldflags += [ "-Wl,-z,max-page-size=4096" ]
}
@ -61,7 +61,7 @@ config("compiler") {
}
if (current_cpu == "arm") {
cflags += [ "-march=armv7-a", "-mtune=generic-armv7-a", ]
cflags += [ "-march=armv7-a", ]
}
# Instead of using an unwind lib from the toolchain,

View file

@ -937,9 +937,11 @@ config("thinlto_optimize_default") {
if (is_win) {
ldflags = [ "/opt:lldlto=" + lto_opt_level ]
ldflags += [ "-mllvm:-enable-pre=false", ]
# ldflags += [ "-opt:lldltocgo=" + lto_opt_level ]
} else {
ldflags = [ "-Wl,--lto-O" + lto_opt_level ]
ldflags += [ "-Wl,--lto-CGO" + lto_opt_level ]
# ldflags += [ "-Wl,-mllvm,-enable-pre=false", ]
}
rustflags = [ "-Clinker-plugin-lto=yes" ]
@ -965,9 +967,11 @@ config("thinlto_optimize_max") {
if (is_win) {
ldflags = [ "/opt:lldlto=" + lto_opt_level ]
ldflags += [ "-mllvm:-enable-pre=false", ]
# ldflags += [ "-opt:lldltocgo=" + lto_opt_level ]
} else {
ldflags = [ "-Wl,--lto-O" + lto_opt_level ]
ldflags += [ "-Wl,--lto-CGO" + lto_opt_level ]
# ldflags += [ "-Wl,-mllvm,-enable-pre=false", ]
}
rustflags = [ "-Clinker-plugin-lto=yes" ]