[all-commits] [llvm/llvm-project] 54de55: [Clang] Fix C library wrappers for offloading (#99...

Joseph Huber via All-commits all-commits at lists.llvm.org
Sat Jul 20 05:19:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 54de554ab8654c7a1f39199c1a491bc80edbba53
      https://github.com/llvm/llvm-project/commit/54de554ab8654c7a1f39199c1a491bc80edbba53
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2024-07-20 (Sat, 20 Jul 2024)

  Changed paths:
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/test/Driver/gpu-libc-headers.c

  Log Message:
  -----------
  [Clang] Fix C library wrappers for offloading (#99716)

Summary:
This block of code wraps around the standard C library includes.
However, the order C library includes are presented is actually
important. If they are visible before the `libc++` headers then it will
cause errors. This patch simply moves the logic to just before it is
normally done. A more optimal solution would be to put this in the
toolchain, however doing it correctly would require knowing the
offloading kind and that would require rewriting the function signature
in all 30 or so ToolChains.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list