Commit 55a90f0
committed
Fix strip/ranlib detection for Android cross builds
Always default strip/ranlib to the host tools, then derive Android-specific llvm-strip/llvm-ranlib based on the detected NDK toolchain location. Moves detection after potential ndk_bin/AR adjustments, falling back to llvm-strip/llvm-ranlib next to the final AR when present, and ensures non-Android SDKs keep the host "strip"/"ranlib". This improves reliability of selecting the correct strip/ranlib for cross compiles with varying NDK layouts.1 parent 57f0114 commit 55a90f0
1 file changed
Lines changed: 19 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
| 268 | + | |
| 269 | + | |
278 | 270 | | |
279 | 271 | | |
280 | 272 | | |
| |||
315 | 307 | | |
316 | 308 | | |
317 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
318 | 324 | | |
319 | 325 | | |
320 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
321 | 330 | | |
322 | 331 | | |
323 | 332 | | |
| |||
0 commit comments