[PATCH] D139167: [clang][Windows]Ignore Options '/d1nodatetime' and '/d1import_no_registry'

Alexandre Ganea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 3 09:17:35 PST 2022


aganea added a comment.

In D139167#3967123 <https://reviews.llvm.org/D139167#3967123>, @efriedma wrote:

> FYI, there's some discussion of /d1nodatetime floating around, even though it isn't formally documented: it disables the definition of the `__DATE__`, `__TIME__`, and `__TIMESTAMP__` macros.
>
> (No idea about d1import_no_registry, though.)

Those two options were introduced (I believe) along with the cl flag `/experimental:deterministic` (they actually alias to that flag, like -cc1 flags do in Clang). `/d1import_no_registry` simply adds this attribute <https://learn.microsoft.com/en-us/cpp/preprocessor/no-registry?view=msvc-170> to all `#import` directives, to make them deterministic.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139167/new/

https://reviews.llvm.org/D139167



More information about the cfe-commits mailing list