Commit 66076fc
Link libclang_rt.osx.a for ___isPlatformVersionAtLeast symbol
Rust passes -nodefaultlibs to the linker, which excludes the compiler
runtime that provides ___isPlatformVersionAtLeast. MLX C++ code uses
@available() checks that reference this symbol. Explicitly find and
link libclang_rt.osx.a via clang --print-file-name.
Signed-off-by: Michael Yuan <michael@secondstate.io>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Michael Yuan <michael@secondstate.io>1 parent 5a4f545 commit 66076fc
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
91 | 107 | | |
92 | 108 | | |
93 | 109 | | |
| |||
0 commit comments