-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add switches for more general altjit and cross-target commands (#45605)
Add `-mch_arch` to specify which architecture to use when downloading MCH files from Azure Storage. The idea is that you can specify to download, say, arm64 MCH files and then run them on x64 by also specifying an arm64 cross-targeting JIT. Defaults to `-target_arch` (which itself defaults to the host architecture). Add `-jit` to allow specifying the JIT name to use. Do this instead of `-altjit`. Change `-altjit` to `--altjit`. It no longer takes a JIT name; use `-jit` instead for that purpose. Now, `--altjit` just sets the altjit variables. Add `-target_arch` and `-target_os` to specify the cross-target of the JIT. The `-target_arch`, in particular, is used to pass the `-target` argument to SuperPMI, which it needs to know which disassembler to use. So, for example, to run SuperPMI asm diffs with a Windows arm64 cross-JIT on Windows x64, you might use: ``` py superpmi.py asmdiffs -jit clrjit_win_arm64_x64.dll -target_arch arm64 ``` Unfortunately, these cross-JIT scenarios have other problems right now, but this scripting is a start.
- Loading branch information
1 parent
87e683f
commit 03059a9
Showing
1 changed file
with
104 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters