Commit f484978
committed
Fix llvm-ar detection for macOS builds
The original assumed that Clang always provides llvm-ar, which fails on
macOS where Apple Clang is the default compiler but doesn't include
llvm-ar. This causes build failures when ENABLE_EXT_F=1.
Add runtime detection using 'which llvm-ar' to check availability before
using it. Falls back to system 'ar' when llvm-ar is not found, ensuring
builds work correctly with both Apple Clang and Homebrew LLVM.1 parent 65a1ec6 commit f484978
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
0 commit comments