[libc-commits] [libc] [libc] Include Linux kernel headers in the full build (PR #97486)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Jul 2 15:36:16 PDT 2024


================
@@ -54,6 +54,9 @@ function(_get_common_compile_options output_var flags)
         list(APPEND compile_options "-isystem${COMPILER_RESOURCE_DIR}/include")
         list(APPEND compile_options "-nostdinc")
       endif()
+      if(LIBC_TARGET_OS_IS_LINUX)
+        list(APPEND compile_options "-idirafter${LIBC_KERNEL_HEADERS}")
----------------
petrhosek wrote:

Done.

https://github.com/llvm/llvm-project/pull/97486


More information about the libc-commits mailing list