Skip to content
Snippets Groups Projects
Commit b89cb6ae authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1748969 - Move definition of MOZ_DIAGNOSTIC_ASSERT_ENABLED to configure. r=emilio

Original patch by emilio.

Differential Revision: https://phabricator.services.mozilla.com/D135321
parent fa1a3394
No related branches found
No related tags found
No related merge requests found
......@@ -427,12 +427,11 @@ struct AssertionConditionType {
} while (false)
#endif /* DEBUG */
#if defined(EARLY_BETA_OR_EARLIER) || defined(DEBUG)
#if defined(MOZ_DIAGNOSTIC_ASSERT_ENABLED)
# define MOZ_DIAGNOSTIC_ASSERT(...) \
MOZ_ASSERT_GLUE( \
MOZ_PASTE_PREFIX_AND_ARG_COUNT(MOZ_ASSERT_HELPER, __VA_ARGS__), \
("MOZ_DIAGNOSTIC_ASSERT", __VA_ARGS__))
# define MOZ_DIAGNOSTIC_ASSERT_ENABLED 1
#else
# define MOZ_DIAGNOSTIC_ASSERT(...) \
do { \
......
......@@ -137,6 +137,12 @@ set_define("MOZ_DEBUG", moz_debug)
# down to old-configure.
add_old_configure_assignment("MOZ_DEBUG", depends("--enable-debug")(lambda x: bool(x)))
set_define(
"MOZ_DIAGNOSTIC_ASSERT_ENABLED",
True,
when=moz_debug | milestone.is_early_beta_or_earlier,
)
option(
"--with-debug-label",
nargs="+",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment