[all-commits] [llvm/llvm-project] 055613: [clang][cli] Expose -fno-cxx-modules in cc1

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Aug 4 04:46:53 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0556138624edf48621dd49a463dbe12e7101f17d
      https://github.com/llvm/llvm-project/commit/0556138624edf48621dd49a463dbe12e7101f17d
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2021-08-04 (Wed, 04 Aug 2021)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/Frontend/CompilerInvocation.cpp
    A clang/test/Modules/cxx20-disable.cpp

  Log Message:
  -----------
  [clang][cli] Expose -fno-cxx-modules in cc1

For some use-cases, it might be useful to be able to turn off modules for C++ in `-cc1`. (The feature is implied by `-std=C++20`.)

This patch exposes the `-fno-cxx-modules` option in `-cc1`.

Reviewed By: arphaman

Differential Revision: https://reviews.llvm.org/D106864




More information about the All-commits mailing list