[PATCH] D125265: [OpenMP] Don't include the device wrappers if -nostdinc is used

Joseph Huber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 9 13:02:01 PDT 2022


jhuber6 added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:1311
   if (JA.isDeviceOffloading(Action::OFK_OpenMP) &&
+      !Args.hasArg(options::OPT_nostdlib) &&
       (getToolChain().getTriple().isNVPTX() ||
----------------
tra wrote:
> Did you mean `nostdinc` ?
Yes, thank you for catching that. That was an autocomplete mishap that I accidentally reintroduced from undoing too many times. I'll fix it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125265



More information about the cfe-commits mailing list