Skip to content

MSVC: /await:strict and /d1nodatetime cause TU to be non-cacheable #2612

Closed

Description

@vtsyganok-microsoft

/await:strict is documented MSVC flag https://learn.microsoft.com/en-us/cpp/build/reference/await-enable-coroutine-support?view=msvc-170 enabling c++20 coroutines and disabling MSVC proprietary implementaion.

/d1nodatetime is undocumented, usually goes with /Brepro to undefine __DATE__, __TIME__ and __TIMESTAMP__ macros.

msvc.rs https://github.com/mozilla/sccache/blob/main/src/compiler/msvc.rs doesn't know them causing the TU to be non-eligible for caching.

The ask is to either:

  1. Add those 2 flags
  2. Let unrecognized flags to be stil cacheable.

Not sure which one is easier and/or follows the design spirit.

Activity

  1. added a commit that references this issue on Feb 13, 2026
    07f422f
  2. added a commit that references this issue on Feb 22, 2026
    6af5ad8
  3. added a commit that references this issue on Feb 23, 2026
    7799876
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions