Skip to content

Commit aeb5673

Browse files
fix cflag option
1 parent 51c3fb5 commit aeb5673

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

libcxx/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ option(LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS
131131
the shared library they shipped should turn this on and see `include/__configuration/availability.h`
132132
for more details." OFF)
133133

134-
option(LIBCPP_STACKTRACE_ALLOW_TOOLS_AT_RUNTIME
135-
"For C++23 <stacktrace>: whether to allow invocation of `addr2line`, `llvm-addr2line` or `atos`
136-
at runtime (if it's available in PATH) to resolve call-chain addresses in the stacktrace
134+
option(LIBCXX_STACKTRACE_ALLOW_TOOLS_AT_RUNTIME
135+
"For C++23 <stacktrace>: whether to allow invocation of `addr2line`, `llvm-addr2line`, or `atos`
136+
at runtime (if it's available in `PATH`) to resolve call-chain addresses in the stacktrace
137137
into source locations, if other methods are not available." ON)
138138

139139
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
@@ -762,7 +762,7 @@ config_define(${LIBCXX_ENABLE_UNICODE} _LIBCPP_HAS_UNICODE)
762762
config_define(${LIBCXX_ENABLE_WIDE_CHARACTERS} _LIBCPP_HAS_WIDE_CHARACTERS)
763763
config_define(${LIBCXX_ENABLE_TIME_ZONE_DATABASE} _LIBCPP_HAS_TIME_ZONE_DATABASE)
764764
config_define(${LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS} _LIBCPP_HAS_VENDOR_AVAILABILITY_ANNOTATIONS)
765-
config_define(${LIBCPP_STACKTRACE_ALLOW_TOOLS_AT_RUNTIME} _LIBCPP_STACKTRACE_ALLOW_TOOLS_AT_RUNTIME)
765+
config_define(${LIBCXX_STACKTRACE_ALLOW_TOOLS_AT_RUNTIME} _LIBCPP_STACKTRACE_ALLOW_TOOLS_AT_RUNTIME)
766766

767767
# TODO: Remove in LLVM 21. We're leaving an error to make this fail explicitly.
768768
if (LIBCXX_ENABLE_ASSERTIONS)

libcxx/docs/VendorDocumentation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ General purpose options
185185
ship the IANA time zone database. When time zones are not supported,
186186
time zone support in <chrono> will be disabled.
187187

188-
.. option:: LIBCPP_STACKTRACE_ALLOW_TOOLS_AT_RUNTIME:BOOL
188+
.. option:: LIBCXX_STACKTRACE_ALLOW_TOOLS_AT_RUNTIME:BOOL
189189

190190
**Default**: ``OFF``
191191

192-
For C++23 <stacktrace>: whether to allow invocation of ``addr2line`` or ``llvm-addr2line``
193-
at runtime (if it's available in PATH) to resolve call-chain addresses in the stacktrace
192+
For C++23 <stacktrace>: whether to allow invocation of ``addr2line``, ``llvm-addr2line``, or ``atos``
193+
at runtime (if it's available in ``PATH``) to resolve call-chain addresses in the stacktrace
194194
into source locations, if other methods are not available.
195195

196196
.. option:: LIBCXX_INSTALL_LIBRARY_DIR:PATH

0 commit comments

Comments
 (0)