[runtime] Prioritize loading a profiler library from the installation dir over standa...
[mono.git] / mono / mini / driver.c
index b4e3e858d8964f501867f513f280fc03e709dbdd..41b5db28e6eb3985584f22024cb621b4c3f94bc0 100644 (file)
@@ -1875,6 +1875,9 @@ mono_main (int argc, char* argv[])
 
        mono_counters_init ();
 
+       /* Set rootdir before loading config */
+       mono_set_rootdir ();
+
        if (enable_profile)
                mono_profiler_load (profile_options);
 
@@ -1909,9 +1912,6 @@ mono_main (int argc, char* argv[])
                mono_load_coree (argv [i]);
 #endif
 
-       /* Set rootdir before loading config */
-       mono_set_rootdir ();
-
        /* Parse gac loading options before loading assemblies. */
        if (mono_compile_aot || action == DO_EXEC || action == DO_DEBUGGER) {
                mono_config_parse (config_file);