ccsm
ccsm copied to clipboard
Support for cross compiled source code
Hello,
I've successfully compiled ccsm
, using your script buildit.sh
(btw, I had to launch it twice because of python missing, but the git part about clang
didn't work the second time because it couldn't pull because the repo was not on a branch), and now I'm trying to use it.
I have set up a clangd
with vscode
, with the compile_commands.json
I have generated, with the corresponding driver (ie --query-driver
for clangd
) which works well.
With ccsm
I can't figure out if I can give such an option, or even being able to get metrics with my cross-compiled sources.
Do you know if cross compilation is supported, and if so how can I set it up, or if it possible to support it one day ?
Thanks for the good work !
I tried to understand the code, but I'm not familiar with C++. Maybe I could modify something, but I don't have any idea where to start.
Could you guide me on some documentation or sources to edit ? Or maybe you know how this could be achieved ?
Thanks in advance :smile:
Hello, Happy New Year :tada:
I'm still struggling, I've tried many things but in vain.
Is there a possibility to bind to clangd
, to get the AST ? It works fine with my VSCode plugin, so maybe I could do something.
I've used ccsm my_file.cpp
, with the correct compile_commands.json
, but it doesn't seem to detect the target/sysroot, and fail due to a wrong include. I didn't find a way to give --target
nor --sysroot̀
options to ccsm
.
Maybe you, or someone, has an idea ? I'm ready to patch the code if necessary
Thanks :)