Fix superpmi.py collect script (#62347)
authorBruce Forstall <brucefo@microsoft.com>
Fri, 3 Dec 2021 22:45:29 +0000 (14:45 -0800)
committerGitHub <noreply@github.com>
Fri, 3 Dec 2021 22:45:29 +0000 (14:45 -0800)
Collect also does a replay, so needs all the replay arguments set to something.
Fixes this error: `'CoreclrArguments' object has no attribute 'compile'`

src/coreclr/scripts/superpmi.py

index 8858cee..8433294 100755 (executable)
@@ -3013,6 +3013,11 @@ def setup_args(args):
                             "Unable to set jitoption")
 
         coreclr_args.verify(args,
+                            "compile",  # The replay code checks this, so make sure it's set
+                            lambda unused: True,
+                            "Method context not valid")
+
+        coreclr_args.verify(args,
                             "collection_command",
                             lambda unused: True,
                             "Unable to set collection_command.")