do not parse debug options in a non-debug build

This commit is contained in:
Paul Davis 2020-03-25 10:34:16 -06:00
parent 3e962da4bb
commit 447a045828
2 changed files with 4 additions and 1 deletions

View file

@ -360,10 +360,12 @@ int main (int argc, char *argv[])
}
{
#ifndef NDEBUG
const char *adf;
if ((adf = g_getenv ("ARDOUR_DEBUG_FLAGS"))) {
PBD::parse_debug_options (adf);
}
#endif /* NDEBUG */
}
cout << PROGRAM_NAME

View file

@ -180,9 +180,11 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
break;
case 'D':
#ifndef NDEBUG
if (PBD::parse_debug_options (optarg)) {
exit (EXIT_SUCCESS);
}
#endif /* NDEBUG */
break;
case 'm':
@ -247,4 +249,3 @@ ARDOUR_COMMAND_LINE::parse_opts (int argc, char *argv[])
return 0;
}