[libcxx-commits] [libcxx] [libc++] Add build flags to optimize <format> and <charconv> for code size. (PR #98003)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jul 9 23:38:24 PDT 2024


================
@@ -274,6 +274,7 @@ _LIBCPP_CONSTEXPR_SINCE_CXX23 _LIBCPP_HIDE_FROM_ABI int __to_chars_integral_widt
 template <typename _Tp>
 inline _LIBCPP_CONSTEXPR_SINCE_CXX23 _LIBCPP_HIDE_FROM_ABI to_chars_result
 __to_chars_integral(char* __first, char* __last, _Tp __value, int __base, false_type) {
+# ifndef _LIBCPP_CHARCONV_OPTIMIZE_SIZE
----------------
mordante wrote:

+1 for using `-Os` instead of a libc++ configuration option.

https://github.com/llvm/llvm-project/pull/98003


More information about the libcxx-commits mailing list