| author | |
| committer | |
| log | c6208369458208f097b8ce1ad1bb6c2bf40f211d |
| tree | afb8282a735ffd79dcc1f9c7509fc8d0d2337380 |
| parent | 0ccd2b0c5cdf4bee706b4a9341b97f786b19a978 |
| signature |
Otherwise we rely on Clang's default which is known to not always match ours.1 files changed, 3 insertions(+), 0 deletions(-)
src/Compilation.zig+3| ... | ... | @@ -6169,6 +6169,9 @@ pub fn addCCArgs( |
| 6169 | 6169 | } |
| 6170 | 6170 | |
| 6171 | 6171 | if (target_util.supports_fpic(target)) { |
| 6172 | // PIE needs to go before PIC because Clang interprets `-fno-PIE` to imply `-fno-PIC`, which | |
| 6173 | // we don't necessarily want. | |
| 6174 | try argv.append(if (comp.config.pie) "-fPIE" else "-fno-PIE"); | |
| 6172 | 6175 | try argv.append(if (mod.pic) "-fPIC" else "-fno-PIC"); |
| 6173 | 6176 | } |
| 6174 | 6177 |