[all-commits] [llvm/llvm-project] 778dbc: [clang] Add /Zc:__STDC__ flag to clang-cl (#68690)

Reagan via All-commits all-commits at lists.llvm.org
Fri May 24 20:48:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 778dbcbbb5c4e462231e812ab463b586555b6a0a
      https://github.com/llvm/llvm-project/commit/778dbcbbb5c4e462231e812ab463b586555b6a0a
  Author: Reagan <xbjfk.github at gmail.com>
  Date:   2024-05-24 (Fri, 24 May 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/InitPreprocessor.cpp
    A clang/test/Driver/ms-define-stdc.c
    A clang/test/Preprocessor/stdc-ms-extension.cpp

  Log Message:
  -----------
  [clang] Add /Zc:__STDC__ flag to clang-cl (#68690)

This commit adds the /Zc:\_\_STDC\_\_ argument from MSVC, which defines
\_\_STDC_\_.
This means, alongside stronger feature parity with MSVC, that things
that rely on \_\_STDC\_\_, such as autoconf, can work.
Link to MSVC documentation of this flag:
https://learn.microsoft.com/en-us/cpp/build/reference/zc-stdc?view=msvc-170



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list