[PATCH] D126719: [clang-cl] Add support for /kernel

Stephen Long via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 31 15:06:39 PDT 2022


steplong added a comment.

In D126719#3548469 <https://reviews.llvm.org/D126719#3548469>, @thakis wrote:

> What does cl do if both `/kernel` and (eg) `/EHsc` is passed (try both orders)? Same question for `/kernel /GR`.

>From my experiments, cl doesn't complain and happily compiles the code if /kernel /EHsc is passed (both orders), unless the code uses exceptions. Then, it complains `error C2980: C++ exception handling is not supported with /kernel` (both orders)
For /GR, it complains `Command line error D8016 : '/kernel' and '/GR' command-line options are incompatible`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126719



More information about the cfe-commits mailing list