[wasm] Add missing aot-profile/runtime.js. (mono/mono#16762)
authorZoltan Varga <vargaz@gmail.com>
Wed, 11 Sep 2019 02:24:40 +0000 (22:24 -0400)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 02:24:40 +0000 (22:24 -0400)
* [wasm] Add missing aot-profile/runtime.js.

* [aot] Avoid writing out a zero AOTID in deterministic mode.

* [wasm] Add --aot-profile= option to packager.

Commit migrated from https://github.com/mono/mono/commit/2e78f0c739840768d192fbc27c1cfec9dacd30e8

src/mono/mono/mini/aot-compiler.c

index 0909752..4cf6c8c 100644 (file)
@@ -13378,7 +13378,7 @@ mono_compile_assembly (MonoAssembly *ass, guint32 opts, const char *aot_options,
                generate_aotid ((guint8*) &acfg->image->aotid);
 
        char *aotid = mono_guid_to_string (acfg->image->aotid);
-       if (!acfg->dedup_collect_only)
+       if (!acfg->dedup_collect_only && !acfg->aot_opts.deterministic)
                aot_printf (acfg, "AOTID %s\n", aotid);
        g_free (aotid);