Commit c739b19
committed
fix(scripts): make
Some CI containers (metax, cambricon) run offline and cannot reach
PyPI; `pip install clang-format` fails with name-resolution errors
and the codegen aborts before any output is written.
Generated files live under `generated/` (gitignored), so they do
not need to satisfy the repo-level `clang-format` check — they only
need to compile. Fall through to writing unformatted output when no
`clang-format` binary is reachable. When a binary is available
(local dev, online CI), formatting still happens and the output that
gets pushed to `src/base/<op>.h` for hand-written-base PRs stays
clang-format-clean.clang-format optional at codegen time1 parent 0f00407 commit c739b19
1 file changed
Lines changed: 28 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
832 | 835 | | |
833 | 836 | | |
834 | 837 | | |
835 | 838 | | |
836 | 839 | | |
837 | 840 | | |
838 | 841 | | |
839 | | - | |
| 842 | + | |
840 | 843 | | |
841 | 844 | | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | 845 | | |
847 | | - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
848 | 857 | | |
849 | | - | |
850 | | - | |
| 858 | + | |
851 | 859 | | |
852 | | - | |
| 860 | + | |
853 | 861 | | |
854 | 862 | | |
855 | 863 | | |
856 | 864 | | |
857 | 865 | | |
858 | 866 | | |
859 | | - | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
860 | 872 | | |
861 | 873 | | |
862 | 874 | | |
| |||
897 | 909 | | |
898 | 910 | | |
899 | 911 | | |
900 | | - | |
| 912 | + | |
901 | 913 | | |
902 | 914 | | |
903 | 915 | | |
| |||
0 commit comments