File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,16 @@ if (NOT "${LIBCXX_HARDENING_MODE}" IN_LIST LIBCXX_SUPPORTED_HARDENING_MODES)
71
71
"Unsupported hardening mode: '${LIBCXX_HARDENING_MODE} '. Supported values are ${LIBCXX_SUPPORTED_HARDENING_MODES} ." )
72
72
endif ()
73
73
set (LIBCXX_ASSERTION_HANDLER_FILE
74
- "${CMAKE_CURRENT_SOURCE_DIR} / vendor/llvm/default_assertion_handler.in"
74
+ "vendor/llvm/default_assertion_handler.in"
75
75
CACHE STRING
76
76
"Specify the path to a header that contains a custom implementation of the
77
77
assertion handler that gets invoked when a hardening assertion fails. If
78
78
provided, this header will be included by the library, replacing the
79
- default assertion handler." )
79
+ default assertion handler. If this is specified as a relative path, it
80
+ is assumed to be relative to '<monorepo>/libcxx'." )
81
+ if (NOT IS_ABSOLUTE "${LIBCXX_ASSERTION_HANDLER_FILE} " )
82
+ set (LIBCXX_ASSERTION_HANDLER_FILE "${CMAKE_CURRENT_SOURCE_DIR} /${LIBCXX_ASSERTION_HANDLER_FILE} " )
83
+ endif ()
80
84
option (LIBCXX_ENABLE_RANDOM_DEVICE
81
85
"Whether to include support for std::random_device in the library. Disabling
82
86
this can be useful when building the library for platforms that don't have
Original file line number Diff line number Diff line change @@ -406,7 +406,8 @@ libc++ Feature Options
406
406
Specify the path to a header that contains a custom implementation of the
407
407
assertion handler that gets invoked when a hardening assertion fails. If
408
408
provided, this header will be included by the library, replacing the
409
- default assertion handler.
409
+ default assertion handler. If this is specified as a relative path, it
410
+ is assumed to be relative to ``<monorepo>/libcxx ``.
410
411
411
412
412
413
libc++ ABI Feature Options
You can’t perform that action at this time.
0 commit comments