[llvm-dev] LLVM compiling
Martell Malone via llvm-dev
llvm-dev at lists.llvm.org
Sat Aug 29 01:04:55 PDT 2015
> You use git clone ? Do you use llvm mirror on Github? I only know svn
On Sat, Aug 29, 2015 at 1:01 AM, 慕冬亮 <mudongliangabcd at gmail.com> wrote:
> 2015-08-29 15:52 GMT+08:00 Martell Malone <martellmalone at gmail.com>:
>> And I don't compile llvm separately. Should I compile llvm separately?
>> Build together is fine.
>> I typically use git and
>> clone clang into llvm/tools
>> and compiler-rt into llvm/projects.
>> You use git clone ? Do you use llvm mirror on Github? I only know svn
>> Then I just run cmake as described and make if I am using -G "Unix
>> I indeed am confused with this compiling method. For example , there are
>>> two files : CMakeLists.txt and Makefile in llvm/lib/Transfroms/Hello.
>> They CmakeLists.txt are part of the source of llvm so I don't see what
>> the confusion is.
>> The makefile has not been touched in 5 years so you would just leave that.
>> It's the CMakeLists you want to edit.
>> I want to add my testing Pass in lib for testing. I should prepare two
>>> files according to the way you compile.( Makefile : autotools ,
>>> CMakeLists.txt : cmake)
>>> Please correct me if what I say are wrong.
>> Testcases are usually automatically picked up when they are in the
>> correct folder regardless of the build system.
>> If you want to add something to the system I would do it in CMakeList.txt
>> and submit it for review via phabracator.
>> I do small change to the CMakeLists.txt in llvm/lib/ to add my pass
> directory. And I copy the CMakeLists.txt in llvm/lib/Transfroms/Hello
> here. So I can compile my pass through cmake.
>> Kind Regards
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev