Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with CLion #27

Open
adamvm opened this issue May 2, 2020 · 2 comments
Open

Integration with CLion #27

adamvm opened this issue May 2, 2020 · 2 comments

Comments

@adamvm
Copy link

adamvm commented May 2, 2020

I look for the best way to integrate toolchain with CLion IDE (currently 2020.1.1)

image

Previously I had this configuration:

image

Anyway IDE was compiling based on gnu-eabi present in the system
Now for stability and compatibility I want assure recomended toolchain

@adamvm
Copy link
Author

adamvm commented May 8, 2020

@FreddieChopin I wondering what part of cross compilation is steered with CMake and what part of GUI. Till now CLion takes arm gnu-eabi installed in system but following your advice I want to switch to Bleeding Edge

@FreddieChopin
Copy link
Owner

FreddieChopin commented May 17, 2020

I never used CLion, so I really don't know what should be configured and what can be left at the default. It seems that you can configure bleeding-edge-toolchain's binaries (the ones from top-level bin/ folder, executables prefixed with arm-none-eabi-) as it's hard to imagine any problem from such setup. I guess that with proper CMake integration (most likely based on CMAKE_EXPORT_COMPILE_COMMANDS and generated compile_commands.json) the settings you shown above will only affect detection of toolchain include paths (files like stdio.h, string.h and so on) and toolchain "internal" defines (things like ranges for fixed-width types etc.).

I wondering what part of cross compilation is steered with CMake and what part of GUI.

Everything is controller by CMake-generated files. GUI should never interfere with anything is such scenario.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants