projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a9e4f2
)
[Bazel] Add include/llvm/Transforms/Utils/ModuleUtils.h to work around layer violatio...
author
Fangrui Song
<i@maskray.me>
Mon, 31 Jan 2022 23:41:45 +0000
(15:41 -0800)
committer
Fangrui Song
<i@maskray.me>
Mon, 31 Jan 2022 23:41:45 +0000
(15:41 -0800)
There is a layer violation and can break clang -fmodule-name=X -fmodules-strict-decluse builds:
* LLVMTransformUtils has `#include "llvm/Bitcode/BitcodeWriterPass.h"`
* LLVMBitWriter depends on LLVMTransformUtils after D116542
Temporarily work around the issue.
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
patch
|
blob
|
history
diff --git
a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index
85d79a2
..
1e8a860
100644
(file)
--- a/
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@
-904,6
+904,7
@@
cc_library(
"include/llvm/Bitcode/BitcodeWriter.h",
"include/llvm/Bitcode/BitcodeWriterPass.h",
"include/llvm/Bitcode/LLVMBitCodes.h",
+ "include/llvm/Transforms/Utils/ModuleUtils.h",
],
copts = llvm_copts,
deps = [