Commit f8508f7
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.
Move PackageTests/Cmm* to PackageTests/Cmm/*.
Fixes #9801 #44351 parent 25e87fd commit f8508f7
File tree
56 files changed
+980
-310
lines changed- Cabal/src/Distribution/Simple
- GHC
- Build
- Program
- cabal-testsuite
- PackageTests
- Cmm
- CmmSourcesDyn
- cbits
- demo
- src
- CmmSourcesExe
- cbits
- demo
- src
- CmmSources
- cbits
- demo
- src
- FFI/ForeignOptsCapi
- cbits
- JS/JSPPOptions
- ShowBuildInfo
- Complex
- Custom
- src/Test/Cabal
- changelog.d
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+980
-310
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
801 | 800 | | |
802 | 801 | | |
803 | 802 | | |
804 | | - | |
| 803 | + | |
805 | 804 | | |
806 | 805 | | |
807 | 806 | | |
| |||
813 | 812 | | |
814 | 813 | | |
815 | 814 | | |
816 | | - | |
| 815 | + | |
817 | 816 | | |
818 | 817 | | |
819 | 818 | | |
| |||
827 | 826 | | |
828 | 827 | | |
829 | 828 | | |
830 | | - | |
| 829 | + | |
831 | 830 | | |
832 | 831 | | |
833 | 832 | | |
| |||
| 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 | | |
| |||
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
77 | 94 | | |
78 | 95 | | |
79 | 96 | | |
| |||
86 | 103 | | |
87 | 104 | | |
88 | 105 | | |
89 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
90 | 123 | | |
91 | 124 | | |
92 | 125 | | |
| |||
101 | 134 | | |
102 | 135 | | |
103 | 136 | | |
104 | | - | |
| 137 | + | |
105 | 138 | | |
106 | 139 | | |
107 | 140 | | |
| |||
117 | 150 | | |
118 | 151 | | |
119 | 152 | | |
120 | | - | |
| 153 | + | |
121 | 154 | | |
122 | 155 | | |
123 | 156 | | |
124 | 157 | | |
125 | | - | |
| 158 | + | |
126 | 159 | | |
127 | 160 | | |
128 | 161 | | |
| |||
140 | 173 | | |
141 | 174 | | |
142 | 175 | | |
143 | | - | |
144 | | - | |
145 | | - | |
| 176 | + | |
146 | 177 | | |
147 | 178 | | |
148 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
344 | 343 | | |
345 | 344 | | |
346 | 345 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
377 | 351 | | |
378 | 352 | | |
379 | 353 | | |
| |||
0 commit comments