From 24f6d214dec54a571e638d8c62234c3ed5f05de3 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Tue, 31 Oct 2017 11:47:08 -0400 Subject: [PATCH] hide `--compile` and `--output` options from -h (#24410) These are tricky to use and should be considered unstable. closes #23054 --- doc/src/manual/getting-started.md | 6 ------ src/jloptions.c | 22 +++++++++++----------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/doc/src/manual/getting-started.md b/doc/src/manual/getting-started.md index f71cbb520d41b..76cf198c5e432 100644 --- a/doc/src/manual/getting-started.md +++ b/doc/src/manual/getting-started.md @@ -124,7 +124,6 @@ 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 Limit usage of cpu features up to ; 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 Enable / Set the level of debug info generation (default level is 1 if unspecified or 2 if used without a level) @@ -132,11 +131,6 @@ julia [switches] -- [programfile] [args...] --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 diff --git a/src/jloptions.c b/src/jloptions.c index 8c95a7f13692e..0457d9c525565 100644 --- a/src/jloptions.c +++ b/src/jloptions.c @@ -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 Limit usage of cpu features up to ; 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 Enable / Set the level of debug info generation" @@ -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)