[llvm] [bazel] Improve libc build on macOS (PR #86174)
Nick Desaulniers via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 13:25:32 PDT 2024
================
@@ -992,10 +999,15 @@ libc_support_library(
libc_support_library(
name = "__support_osutil_quick_exit",
hdrs = ["src/__support/OSUtil/quick_exit.h"],
- textual_hdrs = [
- "src/__support/OSUtil/linux/quick_exit.h",
- #TODO: add support for GPU quick_exit (isn't just in a header.)
- ],
+ textual_hdrs = select({
+ "@platforms//os:macos": [
+ "src/__support/OSUtil/darwin/quick_exit.h",
+ ],
+ "//conditions:default": [
+ "src/__support/OSUtil/linux/quick_exit.h",
+ #TODO: add support for GPU quick_exit (isn't just in a header.)
----------------
nickdesaulniers wrote:
Note: I'm about to touch quick_exit in https://github.com/llvm/llvm-project/pull/85955. Not sure if that will cause a conflict here.
https://github.com/llvm/llvm-project/pull/86174
More information about the llvm-commits
mailing list