<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="text-align:left; direction:ltr;">
<div>Hey gang,</div>
<div><br>
</div>
<div>I'm pretty new to the LLVM project so I'm not sure how best to proceed.</div>
<div><br>
</div>
<div>We are working on using clangd in the Eclipse CDT context (which is now also building VS Code extensions) where we mainly support developers building embedded systems. Most of these systems use gcc as the compiler and where clang does not have target support.</div>
<div><br>
</div>
<div>I've been able to get clangd to properly deal with these projects by forking llmv and clang and adding Triples and Toolchains to properly set up the system include paths and built-in macros and other properties clang needs to parse.</div>
<div><br>
</div>
<div>I also have a hack in the clangd layer to figure out the '-target' argument from the gcc command and inject it when fetching from the compilation database. This part is especially ugly and I'm hoping to find a better way.</div>
<div><br>
</div>
<div>The main question I have: is there appetite for changes like this to be pushed upstream, even though these targets are not meant to be used by clang itself? Or is a fork the proper way to deal with this? Is there anyone else doing something similar?</div>
<div><br>
</div>
<div>Thanks!</div>
<div>Doug.</div>
</body>
</html>