[all-commits] [llvm/llvm-project] 37edd9: [OpenMP] Do not add wrapper headers if using '-nog...

Joseph Huber via All-commits all-commits at lists.llvm.org
Mon Nov 28 08:20:55 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37edd910478d911f93044d524a61974c991e6cae
      https://github.com/llvm/llvm-project/commit/37edd910478d911f93044d524a61974c991e6cae
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-11-28 (Mon, 28 Nov 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    A clang/test/Driver/openmp-offload-headers.c

  Log Message:
  -----------
  [OpenMP] Do not add wrapper headers if using '-nogpuinc'

The OpenMP offloading toolchain uses wrapper headers to implement some
standard features on the GPU. Currently there is no way to turn these
off without also disabling all the standard includes altogether. This
patch makes `-nogpuinc` apply to these wrapper headers so we can use a
sterile toolchain. This was causing problems when attempting to compile
a `libc` for the GPU using OpenMP.

Reviewed By: jdoerfert

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




More information about the All-commits mailing list