[llvm] [bazel] Correct config.h definitions for musl (PR #207295)
Keith Smiley via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 2 16:47:50 PDT 2026
================
@@ -48,10 +46,23 @@ posix_defines = [
"HAVE_UNISTD_H=1",
]
+backtrace_defines = select({
+ "@platforms//os:windows": [],
+ "@llvm//platforms/config:musl": [],
+ "//conditions:default": [
+ "HAVE_BACKTRACE=1",
+ "BACKTRACE_HEADER=<execinfo.h>",
+ ],
+})
+
+mallinfo_defines = select({
+ "@llvm//platforms/config:gnu": ["HAVE_MALLINFO=1"],
----------------
keith wrote:
this one scared me a bit because most platforms won't explicitly define this, but this setting is defined so if there is no setting otherwise it is still true, so this should be safe
https://github.com/llvm/llvm-project/pull/207295
More information about the llvm-commits
mailing list