Commit c046c8a
authored
Auto populate the namespace list to rename in desktop packaging (#1000)
* Change desktop packaging to automatically get the list of C++ namespaces to rename.
This prevents some namespaces from accidentally being omitted. Instead,
the script will rename all namespaces except for std:: and __gnu_cxx.
* Add additional namespaces to ignore.
* Add readme note
* After packaging, scan the libraries to ensure no leaking namespaces.
Also upgrade demumble to 1.2.2 which handles more MSVC demangling cases.
* Add missing parallel install
* Fix a bug in merge_libraries that did not rename all symbols.
* Fix a bug that failed to find namespaces with tildes.
* Also parse `RTTI Class Heirarchy Descriptor` on windows.
Fix windows BFD target.
* Add '$' to top-level namespace search for Darwin.
This fixes grpc_resource_quota_arg_vtable::$_0::__invoke
* Fix renaming of Windows symbols with RTTI info, etc.
* Add tests for merge_libraries script.
* Fix Windows symbol renaming for odd C++ symbols like RTTI descriptors
* Ignore underscores as well to fix a Windows packging issue
* Don't detect namespaces from external symbols.
* Don't auto-add namespaces with underscores.
* Fix namespace detection to only rename top-level; add test.
Remove strict_cpp as it should no longer be required for Windows.
* Add test for add_automatic_namespaces
* Allow the list of allowed namespaces to be determined programatically.1 parent ef7dff1 commit c046c8a
File tree
8 files changed
+572
-47
lines changed- .github/workflows
- build_scripts/desktop
- release_build_files
- scripts
8 files changed
+572
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
| |||
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
157 | | - | |
| 162 | + | |
158 | 163 | | |
159 | 164 | | |
160 | 165 | | |
| |||
544 | 549 | | |
545 | 550 | | |
546 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
547 | 555 | | |
548 | 556 | | |
549 | 557 | | |
| |||
605 | 613 | | |
606 | 614 | | |
607 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
608 | 658 | | |
609 | 659 | | |
610 | 660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
50 | 57 | | |
51 | 58 | | |
52 | 59 | | |
53 | | - | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| |||
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
97 | 112 | | |
98 | 113 | | |
99 | 114 | | |
| |||
208 | 223 | | |
209 | 224 | | |
210 | 225 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | 226 | | |
238 | 227 | | |
239 | 228 | | |
| |||
260 | 249 | | |
261 | 250 | | |
262 | 251 | | |
263 | | - | |
| 252 | + | |
| 253 | + | |
264 | 254 | | |
265 | 255 | | |
266 | 256 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 257 | | |
272 | 258 | | |
273 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
637 | 643 | | |
638 | 644 | | |
639 | 645 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
416 | 418 | | |
417 | 419 | | |
418 | 420 | | |
419 | | - | |
| 421 | + | |
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
| |||
441 | 443 | | |
442 | 444 | | |
443 | 445 | | |
| 446 | + | |
| 447 | + | |
444 | 448 | | |
445 | 449 | | |
446 | 450 | | |
| |||
533 | 537 | | |
534 | 538 | | |
535 | 539 | | |
536 | | - | |
| 540 | + | |
537 | 541 | | |
538 | 542 | | |
539 | 543 | | |
540 | 544 | | |
541 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
542 | 549 | | |
543 | 550 | | |
544 | 551 | | |
545 | 552 | | |
546 | | - | |
| 553 | + | |
| 554 | + | |
547 | 555 | | |
548 | 556 | | |
549 | 557 | | |
550 | 558 | | |
551 | 559 | | |
552 | 560 | | |
553 | 561 | | |
554 | | - | |
| 562 | + | |
555 | 563 | | |
556 | 564 | | |
557 | 565 | | |
| |||
566 | 574 | | |
567 | 575 | | |
568 | 576 | | |
569 | | - | |
| 577 | + | |
| 578 | + | |
570 | 579 | | |
571 | 580 | | |
572 | 581 | | |
| |||
626 | 635 | | |
627 | 636 | | |
628 | 637 | | |
629 | | - | |
| 638 | + | |
630 | 639 | | |
631 | 640 | | |
632 | 641 | | |
| |||
637 | 646 | | |
638 | 647 | | |
639 | 648 | | |
640 | | - | |
| 649 | + | |
641 | 650 | | |
642 | | - | |
| 651 | + | |
643 | 652 | | |
644 | 653 | | |
645 | | - | |
| 654 | + | |
646 | 655 | | |
647 | 656 | | |
648 | 657 | | |
| |||
949 | 958 | | |
950 | 959 | | |
951 | 960 | | |
| 961 | + | |
952 | 962 | | |
953 | 963 | | |
954 | 964 | | |
| |||
962 | 972 | | |
963 | 973 | | |
964 | 974 | | |
| 975 | + | |
965 | 976 | | |
966 | 977 | | |
967 | 978 | | |
968 | | - | |
| 979 | + | |
969 | 980 | | |
970 | 981 | | |
971 | 982 | | |
| |||
0 commit comments