Commit 9ff15db
committed
build: rebuild the NIF when libmlx.a or the Makefile changes
The object rule depended only on c_src sources/headers and $(NIF_SO)
only on the objects, so neither an MLX version bump (a freshly built
libmlx.a under a new MLX_LIB_DIR) nor a compile/link flag change here
forced a rebuild. An existing checkout could copy the new mlx.metallib
while keeping a NIF still statically linked against the old MLX, running
a mismatched binary until a manual clean. Add libmlx.a and the Makefile
as prerequisites of the objects, the linked NIF, and the native bench.1 parent b3977f5 commit 9ff15db
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
95 | | - | |
| 102 | + | |
96 | 103 | | |
97 | 104 | | |
98 | 105 | | |
| |||
0 commit comments