Commit 75f7c25
Add command-line flags for Nix-friendly resource path overrides
Add explicit flags to override Fil-C resource paths instead of relying
solely on directory discovery relative to binary location:
- --filc-resource-dir: Override pizfix root directory
- --filc-dynamic-linker: Override ld-yolo-x86_64.so path
- --filc-crt-path: Override CRT objects directory
- --filc-stdfil-include: Override Fil-C runtime headers
- --filc-os-include: Override kernel headers
- --filc-include: Override libc headers
These flags take precedence over automatic discovery but maintain
backwards compatibility with existing pizfix and /opt/fil setups.
This allows build systems like Nix to use wrappers with explicit
paths without requiring specific directory layouts or copying
resources into pizfix structures.
Amp-Thread-ID: https://ampcode.com/threads/T-5bd1dd1a-c537-49c3-9b23-1b4e27ce4e81
Co-authored-by: Amp <[email protected]>1 parent 8c2d405 commit 75f7c25
File tree
5 files changed
+90
-29
lines changed- clang
- include/clang/Driver
- lib/Driver
- ToolChains
5 files changed
+90
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
837 | 855 | | |
838 | 856 | | |
839 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
269 | 271 | | |
270 | 272 | | |
271 | 273 | | |
| |||
1491 | 1493 | | |
1492 | 1494 | | |
1493 | 1495 | | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
1494 | 1504 | | |
1495 | 1505 | | |
1496 | 1506 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
594 | 594 | | |
595 | 595 | | |
596 | 596 | | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
601 | 608 | | |
602 | 609 | | |
603 | 610 | | |
| |||
681 | 688 | | |
682 | 689 | | |
683 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
684 | 700 | | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
690 | 709 | | |
691 | 710 | | |
692 | | - | |
693 | | - | |
694 | | - | |
| 711 | + | |
695 | 712 | | |
696 | | - | |
| 713 | + | |
697 | 714 | | |
698 | 715 | | |
699 | 716 | | |
| |||
738 | 755 | | |
739 | 756 | | |
740 | 757 | | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
| 758 | + | |
745 | 759 | | |
746 | 760 | | |
747 | 761 | | |
748 | 762 | | |
749 | 763 | | |
750 | 764 | | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
| 765 | + | |
755 | 766 | | |
756 | 767 | | |
757 | 768 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
460 | 464 | | |
461 | | - | |
462 | | - | |
| 465 | + | |
463 | 466 | | |
464 | 467 | | |
465 | 468 | | |
| |||
656 | 659 | | |
657 | 660 | | |
658 | 661 | | |
659 | | - | |
660 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
661 | 670 | | |
662 | 671 | | |
663 | 672 | | |
664 | 673 | | |
665 | | - | |
666 | | - | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
667 | 682 | | |
668 | 683 | | |
669 | 684 | | |
670 | 685 | | |
671 | 686 | | |
672 | | - | |
673 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
674 | 695 | | |
675 | 696 | | |
676 | 697 | | |
| |||
0 commit comments