-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename --precompiled
and --compilecache
command line options
#23616
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,8 +67,8 @@ jl_options_t jl_options = { 0, // quiet | |
0, // worker | ||
NULL, // cookie | ||
JL_OPTIONS_HANDLE_SIGNALS_ON, | ||
JL_OPTIONS_USE_PRECOMPILED_YES, | ||
JL_OPTIONS_USE_COMPILECACHE_YES, | ||
JL_OPTIONS_USE_SYSIMAGE_NATIVE_CODE_YES, | ||
JL_OPTIONS_USE_COMPILED_MODULES_YES, | ||
NULL, // bind-to | ||
NULL, // output-bc | ||
NULL, // output-unopt-bc | ||
|
@@ -86,11 +86,13 @@ static const char opts[] = | |
|
||
// startup options | ||
" -J, --sysimage <file> Start up with the given system image file\n" | ||
" --precompiled={yes|no} Use precompiled code from system image if available\n" | ||
" --compilecache={yes|no} Enable/disable incremental precompilation of modules\n" | ||
" -H, --home <dir> Set location of `julia` executable\n" | ||
" --startup-file={yes|no} Load ~/.juliarc.jl\n" | ||
" --handle-signals={yes|no} Enable or disable Julia's default signal handlers\n\n" | ||
" --handle-signals={yes|no} Enable or disable Julia's default signal handlers\n" | ||
" --sysimage-native-code={yes|no}\n" | ||
" Use native code from system image if available\n" | ||
" --compiled-modules={yes|no}\n" | ||
" Enable or disable incremental precompilation of modules\n\n" | ||
|
||
// actions | ||
" -e, --eval <expr> Evaluate <expr>\n" | ||
|
@@ -109,6 +111,10 @@ static const char opts[] = | |
" --color={yes|no} Enable or disable color text\n" | ||
" --history-file={yes|no} Load or save history\n\n" | ||
|
||
// error and warning options | ||
" --depwarn={yes|no|error} Enable or disable syntax and method deprecation warnings (\"error\" turns warnings into errors)\n" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we name this |
||
" --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" | ||
" -C, --cpu-target <target> Limit usage of cpu features up to <target>; set to \"help\" to see the available options\n" | ||
|
@@ -126,10 +132,6 @@ static const char opts[] = | |
#endif | ||
" --math-mode={ieee,fast} Disallow or enable unsafe floating point optimizations (overrides @fastmath declaration)\n\n" | ||
|
||
// error and warning options | ||
" --depwarn={yes|no|error} Enable or disable syntax and method deprecation warnings (\"error\" turns warnings into errors)\n\n" | ||
" --warn-overwrite={yes|no} Enable or disable method overwrite warnings" | ||
|
||
// 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" | ||
|
@@ -174,7 +176,9 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp) | |
opt_use_precompiled, | ||
opt_use_compilecache, | ||
opt_incremental, | ||
opt_banner | ||
opt_banner, | ||
opt_sysimage_native_code, | ||
opt_compiled_modules | ||
}; | ||
static const char* const shortopts = "+vhqH:e:E:L:J:C:ip:O:g:"; | ||
static const struct option longopts[] = { | ||
|
@@ -190,8 +194,10 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp) | |
{ "print", required_argument, 0, 'E' }, | ||
{ "load", required_argument, 0, 'L' }, | ||
{ "sysimage", required_argument, 0, 'J' }, | ||
{ "precompiled", required_argument, 0, opt_use_precompiled }, | ||
{ "compilecache", required_argument, 0, opt_use_compilecache }, | ||
{ "precompiled", required_argument, 0, opt_use_precompiled }, // deprecated | ||
{ "sysimage-native-code", required_argument, 0, opt_sysimage_native_code }, | ||
{ "compilecache", required_argument, 0, opt_use_compilecache }, // deprecated | ||
{ "compiled-modules", required_argument, 0, opt_compiled_modules }, | ||
{ "cpu-target", required_argument, 0, 'C' }, | ||
{ "procs", required_argument, 0, 'p' }, | ||
{ "machinefile", required_argument, 0, opt_machinefile }, | ||
|
@@ -331,20 +337,26 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp) | |
jl_errorf("julia: invalid argument to --banner={yes|no} (%s)", optarg); | ||
break; | ||
case opt_use_precompiled: | ||
jl_printf(JL_STDOUT, "WARNING: julia --precompiled option is deprecated, use --sysimage-native-code instead.\n"); | ||
// fall through | ||
case opt_sysimage_native_code: | ||
if (!strcmp(optarg,"yes")) | ||
jl_options.use_precompiled = JL_OPTIONS_USE_PRECOMPILED_YES; | ||
jl_options.use_sysimage_native_code = JL_OPTIONS_USE_SYSIMAGE_NATIVE_CODE_YES; | ||
else if (!strcmp(optarg,"no")) | ||
jl_options.use_precompiled = JL_OPTIONS_USE_PRECOMPILED_NO; | ||
jl_options.use_sysimage_native_code = JL_OPTIONS_USE_SYSIMAGE_NATIVE_CODE_NO; | ||
else | ||
jl_errorf("julia: invalid argument to --precompiled={yes|no} (%s)", optarg); | ||
jl_errorf("julia: invalid argument to --sysimage-native-code={yes|no} (%s)", optarg); | ||
break; | ||
case opt_use_compilecache: | ||
jl_printf(JL_STDOUT, "WARNING: julia --compilecache option is deprecated, use --compiled-modules instead.\n"); | ||
// fall through | ||
case opt_compiled_modules: | ||
if (!strcmp(optarg,"yes")) | ||
jl_options.use_compilecache = JL_OPTIONS_USE_COMPILECACHE_YES; | ||
jl_options.use_compiled_modules = JL_OPTIONS_USE_COMPILED_MODULES_YES; | ||
else if (!strcmp(optarg,"no")) | ||
jl_options.use_compilecache = JL_OPTIONS_USE_COMPILECACHE_NO; | ||
jl_options.use_compiled_modules = JL_OPTIONS_USE_COMPILED_MODULES_NO; | ||
else | ||
jl_errorf("julia: invalid argument to --compilecache={yes|no} (%s)", optarg); | ||
jl_errorf("julia: invalid argument to --compiled-modules={yes|no} (%s)", optarg); | ||
break; | ||
case 'C': // cpu-target | ||
jl_options.cpu_target = strdup(optarg); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
appears that we should add a couple spaces, or split this one over multiple lines?