[all-commits] [llvm/llvm-project] e3a678: [clang-cl] Add support for /kernel

pzhengqc via All-commits all-commits at lists.llvm.org
Tue Jun 7 06:43:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e3a6784ac9672506ba69c1754a5e6b7712e1fba7
      https://github.com/llvm/llvm-project/commit/e3a6784ac9672506ba69c1754a5e6b7712e1fba7
  Author: Pengxuan Zheng <pzheng at quicinc.com>
  Date:   2022-06-07 (Tue, 07 Jun 2022)

  Changed paths:
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Driver/Options.td
    M clang/lib/Basic/Targets/OSTargets.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/cl-zc.cpp

  Log Message:
  -----------
  [clang-cl] Add support for /kernel

MSVC defines _KERNEL_MODE when /kernel is passed.
Also, /kernel disables RTTI and C++ exception handling.

https://docs.microsoft.com/en-us/cpp/build/reference/kernel-create-kernel-mode-binary?view=msvc-170

Reviewed By: thakis

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




More information about the All-commits mailing list