Skip to content

Commit 27fe2c9

Browse files
authored
[bazel]Move HAVE_GETAUXVAL from config.h to config.bzl (#127637)
This fixes build errors on mac OS.
1 parent 0d66659 commit 27fe2c9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

utils/bazel/llvm-project-overlay/llvm/config.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ posix_defines = [
4747

4848
linux_defines = posix_defines + [
4949
"_GNU_SOURCE",
50+
"HAVE_GETAUXVAL=1",
5051
"HAVE_MALLINFO=1",
5152
"HAVE_SBRK=1",
5253
"HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC=1",

utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@
296296

297297
/* HAVE_PROC_PID_RUSAGE defined in Bazel */
298298

299-
#define HAVE_GETAUXVAL 1
299+
/* HAVE_GETAUXVAL defined in Bazel */
300300

301301
/* Directly provide definitions here behind platform preprocessor definitions.
302302
* The preprocessor conditions are sufficient to handle all of the configuration

0 commit comments

Comments
 (0)