Commit e522b12
committed
Pass *-options and -pgmc to GHC
Refactor componentGhcOptions for pass *-options to all invoking GHC.
During the refactoring process we needed to add componentGhcOptions
to all Haskell sources. It was also worth add linkGhcOptions
to linkLibrary same as componentGhcOptions to linkExecutable, linkFLib.
Add test for PackageTests/FFI/ForeignOptsCapi to pass cc-options flags to *.h.
Add -pgmc gcc to componentGhcOptions for versions newer then 9.4.
Add more tests like PackageTests/ShowBuildInfo/Complex for -pgmc gcc and -optc-O2,-optcxx-O2,-opta-O2.
Fixes #9801 #44351 parent 71b3c85 commit e522b12
25 files changed
Lines changed: 780 additions & 293 deletions
File tree
- Cabal/src/Distribution/Simple
- GHC
- Build
- Program
- cabal-testsuite
- PackageTests
- FFI/ForeignOptsCapi
- cbits
- ShowBuildInfo
- Complex
- Custom
- src/Test/Cabal
- changelog.d
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
825 | 824 | | |
826 | 825 | | |
827 | 826 | | |
828 | | - | |
| 827 | + | |
829 | 828 | | |
830 | 829 | | |
831 | 830 | | |
| |||
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
840 | | - | |
| 839 | + | |
841 | 840 | | |
842 | 841 | | |
843 | 842 | | |
| |||
851 | 850 | | |
852 | 851 | | |
853 | 852 | | |
854 | | - | |
| 853 | + | |
855 | 854 | | |
856 | 855 | | |
857 | 856 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
81 | 98 | | |
82 | 99 | | |
83 | 100 | | |
| |||
90 | 107 | | |
91 | 108 | | |
92 | 109 | | |
93 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
94 | 127 | | |
95 | 128 | | |
96 | 129 | | |
| |||
105 | 138 | | |
106 | 139 | | |
107 | 140 | | |
108 | | - | |
| 141 | + | |
109 | 142 | | |
110 | 143 | | |
111 | 144 | | |
| |||
122 | 155 | | |
123 | 156 | | |
124 | 157 | | |
125 | | - | |
| 158 | + | |
126 | 159 | | |
127 | 160 | | |
128 | 161 | | |
129 | 162 | | |
130 | | - | |
| 163 | + | |
131 | 164 | | |
132 | 165 | | |
133 | 166 | | |
| |||
145 | 178 | | |
146 | 179 | | |
147 | 180 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 181 | + | |
151 | 182 | | |
152 | 183 | | |
153 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
| |||
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
389 | 363 | | |
390 | 364 | | |
391 | 365 | | |
| |||
0 commit comments