Closed Quuxplusone closed 8 years ago
I believe the build error is caused by the lack of dependencies in the cmake files. I'll work on a patch today.
Attached attr-llvm1.patch
(16317 bytes, text/plain): llvm patch to add dependencies to cmake files
Attached attr-clang1.patch
(527 bytes, text/plain): clang patch to add dependencies to cmake files
The attached patches add dependencies to the cmake files. clang or other parts of llvm that depend on Attributes.h should be built after llvm/IR/Attributes.inc is built.
Fixed in r253554.
It was really missing dependencies. You can reproduce with;
ninja -t clean
ninja clangFrontend
Hatanaka san, FYI,
Trunk of cmakefiles is adding Attributes.inc to intrinsics_gen regardless of
add_public_tablegen_target(attributes_inc).
I think we may separate attributes_inc from intrinsics_gen, if we could
separate definitions of llvm::Attribute::AttrKind from Attributes.h.
Thank you Nakamura-san.
In order to avoid adding Attributes.inc to the dependents of instrinsics_gen, can we clear variable TABLEGEN_OUTPUT after add_public_tablegen_target(attributes_inc)? Alternatively, I think we can add another parameter to function tablegen that indicates whether or not TABLEGEN_OUTPUT should be cleared.
attr-llvm1.patch
(16317 bytes, text/plain)attr-clang1.patch
(527 bytes, text/plain)