Skip to content

Commit

Permalink
hide --compile and --output options from -h (#24410)
Browse files Browse the repository at this point in the history
These are tricky to use and should be considered unstable.

closes #23054
  • Loading branch information
JeffBezanson committed Oct 31, 2017
1 parent b8d42d4 commit 24f6d21
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
6 changes: 0 additions & 6 deletions doc/src/manual/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,13 @@ julia [switches] -- [programfile] [args...]
--depwarn={yes|no|error} Enable or disable syntax and method deprecation warnings ("error" turns warnings into errors)
--warn-overwrite={yes|no} Enable or disable method overwrite warnings
--compile={yes|no|all|min}Enable or disable JIT compiler, or request exhaustive compilation
-C, --cpu-target <target> Limit usage of cpu features up to <target>; set to "help" to see the available options
-O, --optimize={0,1,2,3} Set the optimization level (default level is 2 if unspecified or 3 if used without a level)
-g, -g <level> Enable / Set the level of debug info generation (default level is 1 if unspecified or 2 if used without a level)
--inline={yes|no} Control whether inlining is permitted, including overriding @inline declarations
--check-bounds={yes|no} Emit bounds checks always or never (ignoring declarations)
--math-mode={ieee,fast} Disallow or enable unsafe floating point optimizations (overrides @fastmath declaration)
--output-o name Generate an object file (including system image data)
--output-ji name Generate a system image data file (.ji)
--output-bc name Generate LLVM bitcode (.bc)
--output-incremental=no Generate an incremental output file (rather than complete)
--code-coverage={none|user|all}, --code-coverage
Count executions of source lines (omitting setting is equivalent to "user")
--track-allocation={none|user|all}, --track-allocation
Expand Down
22 changes: 11 additions & 11 deletions src/jloptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static const char opts[] =
" --warn-overwrite={yes|no} Enable or disable method overwrite warnings\n\n"

// code generation options
" --compile={yes|no|all|min}Enable or disable JIT compiler, or request exhaustive compilation\n"
//" --compile={yes|no|all|min}Enable or disable JIT compiler, or request exhaustive compilation\n"
" -C, --cpu-target <target> Limit usage of cpu features up to <target>; set to \"help\" to see the available options\n"
" -O, --optimize={0,1,2,3} Set the optimization level (default level is 2 if unspecified or 3 if used without a level)\n"
" -g, -g <level> Enable / Set the level of debug info generation"
Expand All @@ -123,22 +123,22 @@ static const char opts[] =
#endif
" --math-mode={ieee,fast} Disallow or enable unsafe floating point optimizations (overrides @fastmath declaration)\n\n"

// instrumentation options
" --code-coverage={none|user|all}, --code-coverage\n"
" Count executions of source lines (omitting setting is equivalent to \"user\")\n"
" --track-allocation={none|user|all}, --track-allocation\n"
" Count bytes allocated by each source line\n\n"

// compiler output options
" --output-o name Generate an object file (including system image data)\n"
" --output-ji name Generate a system image data file (.ji)\n"
//" --output-o name Generate an object file (including system image data)\n"
//" --output-ji name Generate a system image data file (.ji)\n"
// These are for compiler debugging purposes only and should not be otherwise
// used, so don't show them here. See the devdocs for tips on using these
// options for debugging the compiler.
// " --output-unopt-bc name Generate unoptimized LLVM bitcode (.bc)\n"
// " --output-jit-bc name Dump all IR generated by the frontend (not including system image)\n"
" --output-bc name Generate LLVM bitcode (.bc)\n"
" --output-incremental=no Generate an incremental output file (rather than complete)\n\n"

// instrumentation options
" --code-coverage={none|user|all}, --code-coverage\n"
" Count executions of source lines (omitting setting is equivalent to \"user\")\n"
" --track-allocation={none|user|all}, --track-allocation\n"
" Count bytes allocated by each source line\n\n"
//" --output-bc name Generate LLVM bitcode (.bc)\n"
//" --output-incremental=no Generate an incremental output file (rather than complete)\n\n"
;

JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
Expand Down

0 comments on commit 24f6d21

Please sign in to comment.