Commit 73202bd
committed
fix llvm-ar as archiver for msvc targets
this is somewhat a nasty hack here, but it does work. when (cross) compiling for msvc and you use llvm-ar as the archiver, then you need to use gnu-style flags.
currently it attemps to run llvm-ar like:
```
running: "/usr/bin/llvm-ar" "-out:/workspaces/ars/build_windows_clang_x86_64_relnoopt/./cargo/build/x86_64-pc-windows-msvc/release/build/link-cplusplus-b04e59fc086748c2/out/liblink-cplusplus.a" "-nologo" "/workspaces/ars/build_windows_clang_x86_64_relnoopt/./cargo/build/x86_64-pc-windows-msvc/release/build/link-cplusplus-b04e59fc086748c2/out/0466faf07398e270-dummy.o"
```
which doesn't work, as llvm-ar takes in GNU-style ar flags.
i'm definitely open to a more robust way to get the archiver "Family" (maybe something similar to how we detect compiler family? idk) if that would be better1 parent 30c6b72 commit 73202bd
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2398 | 2398 | | |
2399 | 2399 | | |
2400 | 2400 | | |
2401 | | - | |
| 2401 | + | |
| 2402 | + | |
2402 | 2403 | | |
2403 | 2404 | | |
2404 | 2405 | | |
| |||
2421 | 2422 | | |
2422 | 2423 | | |
2423 | 2424 | | |
2424 | | - | |
2425 | 2425 | | |
2426 | 2426 | | |
2427 | 2427 | | |
| |||
2435 | 2435 | | |
2436 | 2436 | | |
2437 | 2437 | | |
2438 | | - | |
2439 | | - | |
| 2438 | + | |
| 2439 | + | |
2440 | 2440 | | |
2441 | 2441 | | |
2442 | 2442 | | |
| |||
2455 | 2455 | | |
2456 | 2456 | | |
2457 | 2457 | | |
2458 | | - | |
2459 | | - | |
2460 | 2458 | | |
2461 | 2459 | | |
2462 | 2460 | | |
| |||
2479 | 2477 | | |
2480 | 2478 | | |
2481 | 2479 | | |
2482 | | - | |
| 2480 | + | |
2483 | 2481 | | |
2484 | 2482 | | |
2485 | 2483 | | |
2486 | 2484 | | |
2487 | | - | |
| 2485 | + | |
2488 | 2486 | | |
2489 | 2487 | | |
2490 | 2488 | | |
| |||
0 commit comments