mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 00:06:09 +03:00
libc++: Disable exceptions and RTTI
This commit is contained in:
parent
1c6691986b
commit
91e46025a8
4
src/buildtools/third_party/libc++/BUILD.gn
vendored
4
src/buildtools/third_party/libc++/BUILD.gn
vendored
@ -102,8 +102,6 @@ target(_libcxx_target_type, "libc++") {
|
|||||||
}
|
}
|
||||||
configs -= [
|
configs -= [
|
||||||
"//build/config/compiler:chromium_code",
|
"//build/config/compiler:chromium_code",
|
||||||
"//build/config/compiler:no_exceptions",
|
|
||||||
"//build/config/compiler:no_rtti",
|
|
||||||
"//build/config/coverage:default_coverage",
|
"//build/config/coverage:default_coverage",
|
||||||
]
|
]
|
||||||
if (is_android && libcxx_is_shared) {
|
if (is_android && libcxx_is_shared) {
|
||||||
@ -112,8 +110,6 @@ target(_libcxx_target_type, "libc++") {
|
|||||||
configs += [
|
configs += [
|
||||||
":config",
|
":config",
|
||||||
"//build/config/compiler:no_chromium_code",
|
"//build/config/compiler:no_chromium_code",
|
||||||
"//build/config/compiler:exceptions",
|
|
||||||
"//build/config/compiler:rtti",
|
|
||||||
"//build/config/sanitizers:sanitizer_options_link_helper",
|
"//build/config/sanitizers:sanitizer_options_link_helper",
|
||||||
]
|
]
|
||||||
if (libcxx_is_shared && !is_win) {
|
if (libcxx_is_shared && !is_win) {
|
||||||
|
20
src/buildtools/third_party/libc++abi/BUILD.gn
vendored
20
src/buildtools/third_party/libc++abi/BUILD.gn
vendored
@ -82,4 +82,24 @@ source_set("libc++abi") {
|
|||||||
configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
|
configs -= [ "//build/config/gcc:symbol_visibility_hidden" ]
|
||||||
configs += [ "//build/config/gcc:symbol_visibility_default" ]
|
configs += [ "//build/config/gcc:symbol_visibility_default" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!is_mac) {
|
||||||
|
sources -= [
|
||||||
|
"trunk/src/cxa_exception.cpp",
|
||||||
|
"trunk/src/cxa_personality.cpp",
|
||||||
|
"trunk/src/private_typeinfo.cpp",
|
||||||
|
]
|
||||||
|
sources += [
|
||||||
|
"trunk/src/cxa_noexception.cpp",
|
||||||
|
]
|
||||||
|
defines += [ "_LIBCXXABI_NO_EXCEPTIONS" ]
|
||||||
|
configs -= [
|
||||||
|
"//build/config/compiler:exceptions",
|
||||||
|
"//build/config/compiler:rtti",
|
||||||
|
]
|
||||||
|
configs += [
|
||||||
|
"//build/config/compiler:no_exceptions",
|
||||||
|
"//build/config/compiler:no_rtti",
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user