in verbose mode, list all options at startup
@@ -80,7 +80,12 @@ static void mi_option_init(mi_option_desc_t* desc);
void _mi_options_init(void) {
// called on process load
for(int i = 0; i < _mi_option_last; i++ ) {
- mi_option_get((mi_option_t)i); // initialize
+ mi_option_t option = (mi_option_t)i;
+ mi_option_get(option); // initialize
+ if (option != mi_option_verbose) {
+ mi_option_desc_t* desc = &options[option];
+ _mi_verbose_message("option '%s': %ld\n", desc->name, desc->value);
+ }
}
}
@@ -90,9 +95,6 @@ long mi_option_get(mi_option_t option) {
mi_assert(desc->option == option); // index should match the option
if (mi_unlikely(desc->init == UNINIT)) {
mi_option_init(desc);
- if (option != mi_option_verbose) {
- _mi_verbose_message("option '%s': %ld\n", desc->name, desc->value);
- }
}
return desc->value;
}
