Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/coreclr/scripts/superpmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2280,6 +2280,17 @@ def replay_with_asm_diffs(self):
# two Release compilers, so this is safest.
flags += [ "-ignoreStoredConfig" ]

# `-ignoreStoredConfig` drops any codegenopt the collection recorded into the
# MCH stored config. For wasm we need to re-supply
# `JitWasmNyiToR2RUnsupported=1` (set by crossgen-corelib.proj during collection)
# so that unimplemented opcodes turn into R2R-unsupported skips rather than
# asserts. FIXME: remove once wasm codegen covers all cases.
if self.coreclr_args.target_arch == "wasm":
flags += [
"-jitoption", "force", "JitWasmNyiToR2RUnsupported=1",
"-jit2option", "force", "JitWasmNyiToR2RUnsupported=1"
]

# Change the working directory to the Core_Root we will call SuperPMI from.
# This is done to allow libcoredistools to be loaded correctly on unix
# as the loadlibrary path will be relative to the current directory.
Expand Down
Loading