Commit bb42ebe
authored
builder: use ar-chives for linking big sketches (was: use the @ syntax to reduce command line length if needed) (#961)
* Small cosmetic changes
* Create an archive file if the number of object files is too big
This should fix the command line too big issue on Windows.
* fixed comments
* When exploiting ar-chives make a .a file for each soruce subfolder
This is required because gcc-ar checks if an object file is already
in the archive by looking ONLY at the filename WITHOUT the path, so
it may happens that, for example, an object file named "subdir/spi.o",
already inside the archive, may be overwritten by an object file in
"anotherdir/spi.o" only because they are both named spi.o and even if
they are compiled on different directories.
* using paths.PathList to keep objectFileList1 parent 27381c5 commit bb42ebe
File tree
3 files changed
+35
-6
lines changed- legacy/builder
- constants
- phases
3 files changed
+35
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
62 | 92 | | |
63 | 93 | | |
64 | 94 | | |
65 | 95 | | |
66 | 96 | | |
67 | 97 | | |
68 | | - | |
| 98 | + | |
69 | 99 | | |
70 | | - | |
| 100 | + | |
71 | 101 | | |
72 | 102 | | |
73 | 103 | | |
| |||
0 commit comments