[libc++] Don't add reference to system_category when exceptions disabled (#67504)
commit07d08f4eb44e09e888c0773d87872570048e02ac
authorDaniel Thornburgh <dthorn@google.com>
Wed, 27 Sep 2023 13:09:43 +0000 (27 06:09 -0700)
committerGitHub <noreply@github.com>
Wed, 27 Sep 2023 13:09:43 +0000 (27 09:09 -0400)
treed0cfb4dc40cd8f26885b6e46d4e8fb6552b6008b
parent5109cb28fda8076f057c70bd25af7ed82de1d9b7
[libc++] Don't add reference to system_category when exceptions disabled (#67504)

This fixes a size regression in Fuchsia when building a static libc++
multilib with exceptions disabled. Referring to `system_category` in
`__throw_system_error` brings in a relatively large amount of additional
exception classes into the link without substantially improving the
error message.
libcxx/src/system_error.cpp