[llvm] [bazel]Move HAVE_GETAUXVAL from config.h to config.bzl (PR #127637)
Danial Klimkin via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 18 06:03:41 PST 2025
https://github.com/dklimkin created https://github.com/llvm/llvm-project/pull/127637
This fixes build errors on mac OS.
>From 75867fc556ba47b0b2bad2fffddae29864605f29 Mon Sep 17 00:00:00 2001
From: Danial Klimkin <dklimkin at google.com>
Date: Tue, 18 Feb 2025 15:02:34 +0100
Subject: [PATCH] [bazel]Move HAVE_GETAUXVAL from config.h to config.bzl
---
utils/bazel/llvm-project-overlay/llvm/config.bzl | 1 +
.../llvm-project-overlay/llvm/include/llvm/Config/config.h | 2 --
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/llvm/config.bzl b/utils/bazel/llvm-project-overlay/llvm/config.bzl
index 6e703d22e7756..fa616bcb9a8c9 100644
--- a/utils/bazel/llvm-project-overlay/llvm/config.bzl
+++ b/utils/bazel/llvm-project-overlay/llvm/config.bzl
@@ -47,6 +47,7 @@ posix_defines = [
linux_defines = posix_defines + [
"_GNU_SOURCE",
+ "HAVE_GETAUXVAL=1",
"HAVE_MALLINFO=1",
"HAVE_SBRK=1",
"HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC=1",
diff --git a/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h b/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
index 93695f8e26d27..9a5261bf2f642 100644
--- a/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
+++ b/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h
@@ -296,8 +296,6 @@
/* HAVE_PROC_PID_RUSAGE defined in Bazel */
-#define HAVE_GETAUXVAL 1
-
/* Directly provide definitions here behind platform preprocessor definitions.
* The preprocessor conditions are sufficient to handle all of the configuration
* on platforms targeted by Bazel, and defining these here more faithfully
More information about the llvm-commits
mailing list