Commit 433db70
Simplify apple_metal_library (#2747)
Closes: #2502
There is no need to generate an air file for each metal file.
Metal CLI can do it behind the scene (as per Apple's
[docs](https://developer.apple.com/documentation/metal/generating-and-loading-a-metal-library-symbol-file?language=objc#Generate-a-Symbol-File-with-a-Single-Command)),
so just one CLI call is sufficient to build entire metallib.
The new implementation a much simpler as well as makes it easier to pass
additional flags (such as "generate debug symbols" as described in the
original issue).
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
Co-authored-by: Aaron Sky <aaronsky@skyaaron.com>1 parent 717c51e commit 433db70
2 files changed
Lines changed: 7 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 21 | | |
26 | 22 | | |
27 | 23 | | |
| |||
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
73 | | - | |
74 | 69 | | |
75 | 70 | | |
76 | 71 | | |
| |||
88 | 83 | | |
89 | 84 | | |
90 | 85 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 86 | | |
| 87 | + | |
118 | 88 | | |
119 | 89 | | |
120 | 90 | | |
121 | | - | |
| 91 | + | |
| 92 | + | |
122 | 93 | | |
123 | | - | |
| 94 | + | |
| 95 | + | |
124 | 96 | | |
125 | 97 | | |
126 | 98 | | |
127 | 99 | | |
128 | 100 | | |
129 | 101 | | |
130 | | - | |
| 102 | + | |
131 | 103 | | |
132 | 104 | | |
133 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments