buildtools: Disable exceptions and RTTI in libc++ modules
This is to fix current error in https://ci.chromium.org/ui/p/chromium/builders/ci/linux-modules-compile-fyi-rel/32625/overview Bug: 40440396 Change-Id: Ieb2b1d2bafd888b9a311f3aa2b27ca4e96a21630 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6577663 Commit-Queue: Takuto Ikuta <tikuta@chromium.org> Auto-Submit: Takuto Ikuta <tikuta@chromium.org> Reviewed-by: Fumitoshi Ukai <ukai@google.com> Cr-Commit-Position: refs/heads/main@{#1463920}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
d51435dc8b
commit
521143fab4
17
buildtools/third_party/libc++/BUILD.gn
vendored
17
buildtools/third_party/libc++/BUILD.gn
vendored
@ -114,14 +114,10 @@ builtin_modules("_Builtin_unwind") {
|
||||
configs_to_add = [
|
||||
":config",
|
||||
"//build/config/compiler:no_chromium_code",
|
||||
"//build/config/compiler:exceptions",
|
||||
"//build/config/compiler:rtti",
|
||||
]
|
||||
|
||||
configs_to_remove = [
|
||||
"//build/config/compiler:chromium_code",
|
||||
"//build/config/compiler:no_exceptions",
|
||||
"//build/config/compiler:no_rtti",
|
||||
"//build/config/coverage:default_coverage",
|
||||
]
|
||||
|
||||
@ -414,8 +410,17 @@ target(libcxx_target_type, "libc++") {
|
||||
}
|
||||
}
|
||||
|
||||
configs -= configs_to_remove
|
||||
configs += configs_to_add
|
||||
# Enable exceptions and rtti for libc++, but disable them in modules targets
|
||||
# so that modules can be used for other chromium targets which don't enable
|
||||
# exception and rtti.
|
||||
configs -= configs_to_remove + [
|
||||
"//build/config/compiler:no_exceptions",
|
||||
"//build/config/compiler:no_rtti",
|
||||
]
|
||||
configs += configs_to_add + [
|
||||
"//build/config/compiler:exceptions",
|
||||
"//build/config/compiler:rtti",
|
||||
]
|
||||
|
||||
deps = [ "//third_party/llvm-libc:llvm-libc-shared" ]
|
||||
|
||||
|
Reference in New Issue
Block a user