[PATCH] Get the LLVM_ENABLE_MODULES build going for LLVM

Duncan P. N. Exon Smith dexonsmith at apple.com
Tue Jun 9 13:58:47 PDT 2015


These changes collectively get LLVM building with
-DLLVM_ENABLE_MODULES=ON using Xcode 7 beta as the host compiler.

I imagine this patch would help out the very red
http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules
a little, although I only went as far as LLVM locally.

I'll split this up before commit, but I wouldn't mind a quick check that
I'm fixing things "correctly".  In particular, most libraries now depend
on `intrinsics_gen` to ensure that llvm/IR/Intrinsics.gen gets built
before anyone includes the LLVM_IR module (I found the complete list by
inserting a compile error in TableGen.cpp and running `ninja -k 2` until
that was the only error).  Is there a better way to represent this
dependency?

Also, is there any reason LLVM_ENABLE_MODULES isn't documented at
http://llvm.org/docs/CMake.html
?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-cxx-modules.patch
Type: application/octet-stream
Size: 5064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150609/220a1994/attachment.obj>


More information about the llvm-commits mailing list