Fix android build

This commit is contained in:
klzgrad 2022-01-06 00:07:23 +08:00
parent 3647e86902
commit bdc70837c1
2 changed files with 12 additions and 1 deletions

View File

@ -1413,7 +1413,7 @@ component("base") {
# building inside the cros_sdk environment - use host_toolchain as a
# more robust check for this.
if (!use_sysroot &&
(is_android || ((is_linux || is_chromeos) && !is_chromecast)) &&
((is_linux || is_chromeos) && !is_chromecast) &&
host_toolchain != "//build/toolchain/cros:host") {
libs += [ "atomic" ]
}

View File

@ -109,4 +109,15 @@ source_set("libc++abi") {
"//build/config/compiler:no_rtti",
]
}
if (is_android) {
sources += [
"trunk/src/private_typeinfo.cpp",
]
configs -= [
"//build/config/compiler:no_rtti",
]
configs += [
"//build/config/compiler:rtti",
]
}
}