[llvm] [bazel] Improve libc build on macOS (PR #86174)
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 27 07:31:40 PDT 2024
================
@@ -988,9 +998,10 @@ libc_support_library(
libc_support_library(
name = "__support_osutil_io",
hdrs = ["src/__support/OSUtil/io.h"],
- textual_hdrs = [
- "src/__support/OSUtil/linux/io.h",
- ],
+ textual_hdrs = select({
+ "@platforms//os:macos": ["src/__support/OSUtil/darwin/io.h"],
+ "//conditions:default": ["src/__support/OSUtil/linux/io.h"],
----------------
gchatelet wrote:
same here
https://github.com/llvm/llvm-project/pull/86174
More information about the llvm-commits
mailing list