Commit f2d1bbd
Improve JIT behavior on unsupported platforms
Summary:
If trying to run on an unsupported CPU architecture, actually emit a debug print
that says what the problem is. Currently the DLOG is always silenced.
Also catch exceptions from asmjit if we do ever get that far. Otherwise the
entire Python runtime will crash. This way importing CinderX will raise a
RuntimeError instead.
Reviewed By: DinoV
Differential Revision: D84076101
fbshipit-source-id: 4114ce5e038fad22ca0740c693fb6bb8cb72410f1 parent 0638e47 commit f2d1bbd
1 file changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2789 | 2789 | | |
2790 | 2790 | | |
2791 | 2791 | | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
2792 | 2808 | | |
2793 | 2809 | | |
2794 | 2810 | | |
| |||
2964 | 2980 | | |
2965 | 2981 | | |
2966 | 2982 | | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
2967 | 2992 | | |
2968 | 2993 | | |
2969 | 2994 | | |
| |||
2992 | 3017 | | |
2993 | 3018 | | |
2994 | 3019 | | |
2995 | | - | |
| 3020 | + | |
| 3021 | + | |
| 3022 | + | |
| 3023 | + | |
| 3024 | + | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
2996 | 3028 | | |
2997 | 3029 | | |
2998 | 3030 | | |
| |||
0 commit comments