Commit be07751
authored
[SYCL][Driver] Improve fat static library support (#1319)
When processing libraries on the command line, take into account any thusly
named static archive (*.a) file and consider that for offloading. We will
also scan the appropriate linker options passed in so we can determine if
the library should be considered as whole-archive. The static libraries
found on the command line will be 'sniffed' to determine if the static
library is fat.
This effectively negates the need to use -foffload-static-lib and
-foffload-whole-static-lib which we should consider deprecated now.
Add a deprecated diagnostic when -foffload-static-lib is used
Refactor to bring along common code for the device check. Narrows the focus
of what is considered to be processed from the linker only arguments. Pulls
in objects from -Wl, instead of only archives, but is only part of a potential
partial link step and is not fully processed.
Signed-off-by: Michael D Toguchi <[email protected]>1 parent ca3bf4a commit be07751
File tree
13 files changed
+571
-171
lines changed- clang
- include/clang
- Basic
- Driver
- lib/Driver
- ToolChains
- test/Driver
13 files changed
+571
-171
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
| 344 | + | |
343 | 345 | | |
344 | 346 | | |
345 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
680 | 681 | | |
681 | 682 | | |
682 | 683 | | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
683 | 696 | | |
684 | 697 | | |
685 | 698 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
624 | 633 | | |
625 | 634 | | |
626 | 635 | | |
| |||
642 | 651 | | |
643 | 652 | | |
644 | 653 | | |
| 654 | + | |
| 655 | + | |
645 | 656 | | |
646 | 657 | | |
647 | 658 | | |
| |||
651 | 662 | | |
652 | 663 | | |
653 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
654 | 668 | | |
655 | 669 | | |
656 | 670 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
454 | 456 | | |
455 | 457 | | |
456 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
457 | 467 | | |
458 | 468 | | |
459 | 469 | | |
| |||
0 commit comments