| author | |
| committer | |
| log | 27507ad9713a05281bcb8031f5206070f1e2a887 |
| tree | 8ada04dba9198e34837b3079d27a5a767b4c9d09 |
| parent | c37fe4b6784cef125ed7b4e043ee3122dd09f491 |
We advertise reproducible builds for release modes, so let's help users achieve
that in C/C++ code. Users can still override this manually if they really want.1 files changed, 4 insertions(+), 0 deletions(-)
src/Compilation.zig+4| ... | ... | @@ -5734,6 +5734,10 @@ pub fn addCCArgs( |
| 5734 | 5734 | }, |
| 5735 | 5735 | } |
| 5736 | 5736 | |
| 5737 | if (mod.optimize_mode != .Debug) { | |
| 5738 | try argv.append("-Werror=date-time"); | |
| 5739 | } | |
| 5740 | ||
| 5737 | 5741 | if (target_util.supports_fpic(target) and mod.pic) { |
| 5738 | 5742 | try argv.append("-fPIC"); |
| 5739 | 5743 | } |