Thread overview
[Issue 20444] Make __DATE__ in dlang reproducible using SOURCE_DATE_EPOCH
Apr 14, 2020
Dlang Bot
Apr 14, 2020
Mathias LANG
Apr 17, 2020
Dlang Bot
April 14, 2020
https://issues.dlang.org/show_bug.cgi?id=20444

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

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

--- Comment #1 from Dlang Bot <dlang-bot@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

--
April 14, 2020
https://issues.dlang.org/show_bug.cgi?id=20444

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |20445


Referenced Issues:

https://issues.dlang.org/show_bug.cgi?id=20445
[Issue 20445] [tools] remove build date for a reproducible build
--
April 17, 2020
https://issues.dlang.org/show_bug.cgi?id=20444

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #11035 "Fix issue 20444 - Support `SOURCE_DATE_EPOCH` for reproducible builds" was merged into master:

- bfb538a1cb5c5991955696db6584fb90bfe783ef by Geod24:
  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

--