How to change the default C compiler with my custom compiler? #39
Replies: 6 comments 7 replies
-
Hi, Thank you for your interest in CDT Cloud! What exactly do you mean by "integrate it in CDT IDE"? If you mean that you'd like to invoke your compiler to build your project in CDT Cloud Blueprint, the easiest way would be to add a {
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"command": "<the-command-to-build-your-project>",
"group": {
"kind": "build",
"isDefault": true
}
}
]
} With the I'm sorry if I misunderstood your question. In that case, please provide more context. Thank you! |
Beta Was this translation helpful? Give feedback.
-
@planger ,I think you confused my problem let me explain again. I have installed extension CodeRunner in CDT to run C file code. when I run code it uses gcc compiler for compilation of C files (it is because gcc is default integrated compiler in CDT for C files) what I want is that instead of that gcc compiler when I run C file in CDT it compiles with my custom compiler assume my compiler name customCompilerC. as in this picture there is command that is executed with gcc compiler, I want it to be like: [Running] cd "/home/ahmed/Desktop/" && customCompilerC hello22.c -o hello22 && "/home/ahmed/Desktop/"hello22 for this change what I think is to do changes in source code where C compiler is set to gcc in CDT source code. For that I need help how to change it like e.g setting my customCompilerC path etc. so that CDT can recognize my compiler. |
Beta Was this translation helpful? Give feedback.
-
Thanks for clarity, Please guide me on it, how can I do this through source code of CDT. |
Beta Was this translation helpful? Give feedback.
-
Hi @planger, I hope you are doing well. After doing extensive research I came to know that Eclipse IDE for Embedded C/C++ Developers an be the right solution for me. But I am unable to find its repo on GitHub. I will be very thankful to you if you can provide me link to the specific repo of Eclipse IDE for Embedded C/C++ Developers. |
Beta Was this translation helpful? Give feedback.
-
@planger , Thanks for sharing it. I am confused about how to build source code from there. Like there are different multiple sub repos, which one should I clone as I need full Embedded C/C++ Developers features? and there is no proper documentation regarding how to build and run IDE app. |
Beta Was this translation helpful? Give feedback.
-
@planger , I want to know by any chance Theia or CDT Blueprint IDE's can support debugging for embedded family Cortex R5 by ARM family? if yes how can I do that? |
Beta Was this translation helpful? Give feedback.
-
Hi, actually I am working on a embedded problem for which I have developed my own custom C compiler. Now I want to integrate it in CDT IDE instead of default GCC compiler for C files.
Please give me full step by step guidance how to do it? like in which files (with path flow) I need to make changes. How will I be able to add my custom compiler's path etc. ( I have tested my compiler, it works fine in compilation of c files)?
Beta Was this translation helpful? Give feedback.
All reactions