[Issue 20444] Make __DATE__ in dlang reproducible using SOURCE_DATE_EPOCH

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 14 10:40:38 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20444

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@Geod24 created dlang/dmd pull request #11035 "Fix issue 20444 - Support
`SOURCE_DATE_EPOCH` for reproducible builds" fixing this issue:

- Refactor: Move time/date/timestamp handling to target

  As mentioned in issue 20444, some compilers (e.g. GCC) support
SOURCE_DATE_EPOCH.
  Moving the handling to target will allow them to hook their driver logic
directly,
  instead of having to edit lexer.

- Fix issue 20444 - Support `SOURCE_DATE_EPOCH` for reproducible builds

  Adds support for the de-facto standard `SOURCE_DATE_EPOCH` variable,
  for lexer tokens `__DATE__`, `__TIME__`, `__TIMESTAMP__`.

https://github.com/dlang/dmd/pull/11035

--


More information about the Digitalmars-d-bugs mailing list