How do I configure a different toolchain, such as cc65?

I want to use CLion to develop for 8-bit computers using the cc65 toolchain.  What do I have to do to configured CLion to compile with this toolchain?  Can I have CLion simply call the Make files that I already use for Visual Studio?

4 comments
Comment actions Permalink

Hi Payton.

Unfortunately, it's not implemented in CLion.
We have a feature request in our tracker:
https://youtrack.jetbrains.com/issue/CPP-871
Feel free to comment or upvote.

0
Comment actions Permalink

Thanks for the reply.  I've added my two cents to the feature request.  Reading the comments seemed to indicate that you could make a dumb CMake file to execute my cc65 makefiles.  Where do you specify a specific CMake file in CLion?

0
Comment actions Permalink

Payton, CLion uses CMakeLists.txt.

CLion uses CMake for loading and determining information about the project (includes, settings, libraries etc).
To support intelligent features such as smart completion, one-click navigation, code analysis and more CLion uses a concept of a project and relies on CMake as a build system for it.
All the includes paths, variables and more is taken from CMake files and are used by CLion to understand your project better and to resolve your code correctly.

With high probability it wouldn't work because CmakeLists is necessary for CLion.

0
Comment actions Permalink

Well, it would be great if CLion added some per-project configuration, but that's already covered in the support ticket.  Having a really good C editor for embedded programming would be great.  Right now, the only good editor for embedded is Visual Studio because its makefile projects allow complete configurability.

0

Please sign in to leave a comment.