丁毅
unread,Jan 28, 2022, 3:33:06 AM1/28/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Crashpad-dev, Joshua Peraza, Crashpad-dev, gerrit....@googlemail.com, 丁毅
Thanks, it works for ARM64(arm32 is similar, I thought) now! The steps are:
2. modify the code in third_party/mini_chromimu/mini_chromimu/build/config/BUILD.gn:
if (mini_chromium_is_linux) {
defines = [ "_FILE_OFFSET_BITS=64" ]
common_flags += [ "-pthread" ]
if (current_cpu == "x86") {
common_flags += [
"-m32",
]
} else if (current_cpu == "x64") {
common_flags += [
"-m64",
]
} else {
assert(false, "Unsupported architecture")
}
...
TO:
if (mini_chromium_is_linux) {
defines = [ "_FILE_OFFSET_BITS=64" ]
common_flags += [ "-pthread" ]
if (current_cpu == "x86") {
common_flags += [
"-m32",
]
} else if (current_cpu == "x64") {
common_flags += [
"-m64",
]
} else if (current_cpu == "arm64") {
common_flags += [
"--target=aarch64-linux-gnu",
]
} else {
assert(false, "Unsupported architecture")
}
...
3. The gn command:
gn gen out/linux/arm64/Release --args='
target_sysroot="/home/dingyi/Downloads/debian_sid_arm64_sysroot"
target_cpu="arm64"
target_os="linux"
is_debug=false
'
4. ninja -C out/linux/arm64/Release