IDE on *nix

Hi all,

Is anyone using any flavour of Unix to develop LLVM? I suppose the
Apple guys are using Mac, right? :wink:

I've seen some docs on the website to set-up Visual Studio but I
haven't seen anything related to cross-platform IDEs (such as Eclipse)
and how to attach the tests to them.

So far I'm not doing any modifications to the LLVM and my project is
still too small to become a memory black-hole on Eclipse, but putting
LLVM itself on it was a bit harsh.

cheers,
--renato

Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

Hi Renato,

I've been using LLVM with Eclipse for a while now. The way to do it is to build LLVM with CMake and tell CMake to generate an Eclipse project file, like so:

cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE="Debug" -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="X86;PowerPC;CBackend" /home/renato/llvm-sources

You'll need to modify that command for your real LLVM path and the correct build options for you, of course.

There is more information on this in the list archives.

--Patrick

Renato Golin wrote:

Thanks Patrick, I'll give it a try.

At least now I know that it can be done. My previous attempts all
ended up in memory depletion during the indexing. :wink:

I'll check the archives...

cheers,
--renato

Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

Renato Golin <rengolin@systemcall.org> writes:

cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE="Debug"
-DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="X86;PowerPC;CBackend"
/home/renato/llvm-sources

Thanks Patrick, I'll give it a try.

At least now I know that it can be done. My previous attempts all
ended up in memory depletion during the indexing. :wink:

I'll check the archives...

This can be useful too:

http://www.llvm.org/docs/CMake.html

Maybe you were hitting this bug?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=253050

Are you using a new enough CDT that has the fix?

Best regards,
--Edwin

Maybe you were hitting this bug?
253050 – C++ Indexer hangs on medium sized project

hum... that sounds familiar... :wink:

Are you using a new enough CDT that has the fix?

I wasn't (3.2) but now I am (galileo), will give it another try.

thanks!
--renato

Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm