@@ -95,6 +95,7 @@ JL_DLLEXPORT void jl_init_options(void)
9595                        NULL , // safe_crash_log_file 
9696                        0 , // task_metrics 
9797                        25 , // timeout_for_safepoint_straggler_s 
98+                         0 , // serialize_machine_code_only 
9899    };
99100    jl_options_initialized  =  1 ;
100101}
@@ -245,6 +246,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
245246           opt_warn_scope ,
246247           opt_inline ,
247248           opt_polly ,
249+            opt_serialize_machine_code_only ,
248250           opt_timeout_for_safepoint_straggler ,
249251           opt_trace_compile ,
250252           opt_trace_compile_timing ,
@@ -325,6 +327,7 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
325327        { "warn-scope" ,      required_argument , 0 , opt_warn_scope  },
326328        { "inline" ,          required_argument , 0 , opt_inline  },
327329        { "polly" ,           required_argument , 0 , opt_polly  },
330+         { "serialize-machine-code-only" , no_argument , 0 , opt_serialize_machine_code_only  },
328331        { "timeout-for-safepoint-straggler" , required_argument , 0 , opt_timeout_for_safepoint_straggler  },
329332        { "trace-compile" ,   required_argument , 0 , opt_trace_compile  },
330333        { "trace-compile-timing" ,  no_argument , 0 , opt_trace_compile_timing  },
@@ -893,6 +896,9 @@ JL_DLLEXPORT void jl_parse_opts(int *argcp, char ***argvp)
893896                jl_errorf ("julia: --timeout-for-safepoint-straggler=<seconds>; seconds must be an integer between 1 and %d" , INT16_MAX );
894897            jl_options .timeout_for_safepoint_straggler_s  =  (int16_t )timeout ;
895898            break ;
899+         case  opt_serialize_machine_code_only :
900+             jl_options .serialize_machine_code_only  =  1 ;
901+             break ;
896902        case  opt_task_metrics :
897903            if  (!strcmp (optarg , "no" ))
898904                jl_options .task_metrics  =  JL_OPTIONS_TASK_METRICS_OFF ;
0 commit comments