[all-commits] [llvm/llvm-project] 43bd7e: [Runtimes][libc] Include kernel headers when using...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Sat Nov 1 12:51:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 43bd7e3bb903af5076a9552f4f64cfc5d58f76ce
      https://github.com/llvm/llvm-project/commit/43bd7e3bb903af5076a9552f4f64cfc5d58f76ce
  Author: Aiden Grossman <aidengrossman at google.com>
  Date:   2025-11-01 (Sat, 01 Nov 2025)

  Changed paths:
    M runtimes/cmake/Modules/HandleLibC.cmake

  Log Message:
  -----------
  [Runtimes][libc] Include kernel headers when using RUNTIMES_USE_LIBC

When setting RUNTIMES_USE_LIBC=libc we pass -nostdlibinc if the compiler
supports it. This causes compilation failures when trying to build
libc++ as libc will try and reference kernel headers in its own headers
that it now cannot find. Explicitly reference the kernel headers so the
compiler can find them.

Reviewers: vonosmas, petrhosek, #reviewers-libcxx, michaelrj-google

Reviewed By: michaelrj-google

Pull Request: https://github.com/llvm/llvm-project/pull/165114



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