Skip to content

Commit

Permalink
Allow long-form --debug-info option (#47257)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett authored Nov 6, 2022
1 parent b0822b8 commit 4e2d13f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/jloptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static const char opts[] =
" --machine-file <file> Run processes on hosts listed in <file>\n\n"

// interactive options
" -i Interactive mode; REPL runs and `isinteractive()` is true\n"
" -i, --interactive Interactive mode; REPL runs and `isinteractive()` is true\n"
" -q, --quiet Quiet startup: no banner, suppress REPL warnings\n"
" --banner={yes|no|auto*} Enable or disable startup banner\n"
" --color={yes|no|auto*} Enable or disable color text\n"
Expand All @@ -146,9 +146,9 @@ static const char opts[] =
" -O, --optimize={0,1,2*,3} Set the optimization level (level 3 if `-O` is used without a level)\n"
" --min-optlevel={0*,1,2,3} Set a lower bound on the optimization level\n"
#ifdef JL_DEBUG_BUILD
" -g [{0,1,2*}] Set the level of debug info generation in the julia-debug build\n"
" -g, --debug-info=[{0,1,2*}] Set the level of debug info generation in the julia-debug build\n"
#else
" -g [{0,1*,2}] Set the level of debug info generation (level 2 if `-g` is used without a level)\n"
" -g, --debug-info=[{0,1*,2}] Set the level of debug info generation (level 2 if `-g` is used without a level)\n"
#endif
" --inline={yes*|no} Control whether inlining is permitted, including overriding @inline declarations\n"
" --check-bounds={yes|no|auto*}\n"
Expand Down Expand Up @@ -256,6 +256,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
{ "version", no_argument, 0, 'v' },
{ "help", no_argument, 0, 'h' },
{ "help-hidden", no_argument, 0, opt_help_hidden },
{ "interactive", no_argument, 0, 'i' },
{ "quiet", no_argument, 0, 'q' },
{ "banner", required_argument, 0, opt_banner },
{ "home", required_argument, 0, 'H' },
Expand All @@ -279,6 +280,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
{ "track-allocation",optional_argument, 0, opt_track_allocation },
{ "optimize", optional_argument, 0, 'O' },
{ "min-optlevel", optional_argument, 0, opt_optlevel_min },
{ "debug-info", optional_argument, 0, 'g' },
{ "check-bounds", required_argument, 0, opt_check_bounds },
{ "output-bc", required_argument, 0, opt_output_bc },
{ "output-unopt-bc", required_argument, 0, opt_output_unopt_bc },
Expand Down

2 comments on commit 4e2d13f

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Executing the daily package evaluation, I will reply here when finished:

@nanosoldier runtests(ALL, isdaily = true, configuration=(rr=true,))

@nanosoldier
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your package evaluation job has completed - possible new issues were detected. A full report can be found here.

Please sign in to comment.