-
Notifications
You must be signed in to change notification settings - Fork 2
/
llvm.patch
52 lines (49 loc) · 1.88 KB
/
llvm.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
index 037719a51dd1..373f24408bd6 100644
--- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
@@ -1685,6 +1685,11 @@ builtin_headers = glob(
"lib/Headers/openmp_wrappers/new",
]
+filegroup(
+ name = "builtin_headers_files",
+ srcs = builtin_headers,
+)
+
genrule(
name = "builtin_headers_gen",
srcs = builtin_headers,
diff --git a/utils/bazel/llvm-project-overlay/llvm/config.bzl b/utils/bazel/llvm-project-overlay/llvm/config.bzl
index b15ec9e1bb39..234723935c2c 100644
--- a/utils/bazel/llvm-project-overlay/llvm/config.bzl
+++ b/utils/bazel/llvm-project-overlay/llvm/config.bzl
@@ -28,8 +28,8 @@ def native_arch_defines(arch, triple):
posix_defines = [
"LLVM_ON_UNIX=1",
- "HAVE_BACKTRACE=1",
- "BACKTRACE_HEADER=<execinfo.h>",
+ #"HAVE_BACKTRACE=1",
+ #"BACKTRACE_HEADER=<execinfo.h>",
r'LTDL_SHLIB_EXT=\".so\"',
r'LLVM_PLUGIN_EXT=\".so\"',
"LLVM_ENABLE_THREADS=1",
@@ -48,7 +48,7 @@ posix_defines = [
linux_defines = posix_defines + [
"_GNU_SOURCE",
"HAVE_LINK_H=1",
- "HAVE_MALLINFO=1",
+ #"HAVE_MALLINFO=1",
"HAVE_SBRK=1",
"HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC=1",
]
diff --git a/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl b/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl
index 9d26822ac163..bacaa93ba7c3 100644
--- a/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl
+++ b/utils/bazel/llvm-project-overlay/mlir/tblgen.bzl
@@ -172,7 +172,6 @@ def _gentbl_rule_impl(ctx):
# Make sure action_env settings are honored so the env is the same as
# when the tool was built. Important for locating shared libraries with
# a custom LD_LIBRARY_PATH.
- use_default_shell_env = True,
mnemonic = "TdGenerate",
)