[libcxx-commits] [libcxx] [libc++] Add build flags to optimize <format> and <charconv> for code size. (PR #98003)
Robbie Litchfield via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 8 13:04:09 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
----------------
BlamKiwi wrote:
Most compilers have a preprocessor define when targeting `-Os`. Would you prefer that was used?
https://github.com/llvm/llvm-project/pull/98003
More information about the libcxx-commits
mailing list