{"repo":"kraj/meta-clang","free":true,"listed":false,"github":"https://github.com/kraj/meta-clang","clone":"git clone https://github.com/kraj/meta-clang.git","description":"Clang C/C++ cross compiler and runtime for OpenEmbedded/Yocto Project","language":"BitBake","stars":197,"topics":["bitbake","clang","llvm","yocto","compilers","cross-compiler","c","sdk"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"meta-clang (C/C++ frontend and LLVM compiler backend) This layer provides clang/llvm as alternative to system C/C++ compiler for OpenEmbedded/Yocto Project based distributions. This can cohabit with GNU compiler and can be used for specific recipes or full system compiler. Getting Started If using poky ( Yocto project reference Distribution ) Add meta-clang overlay Check conf/bblayers.conf to see that meta-clang is added to layer mix e.g. Default Compiler Note that by default gcc will remain the system compiler, however if you wish clang to be the default compiler then set in local.conf , this would now switch default cross-compiler to be clang you can select clang per recipe too by writing bbappends for them containing also look at conf/nonclangable.conf for list of recipes which do not yet fully build with clang. Providing LLVM clang recipes can provide llvm and related packages too, it might be worth using single provider for llvm and clang to save some compile time and space, select the knobs to point to clang, default is to use the version provided by core layer. Default Compiler Runtime Default is to use GNU runtime TC CXX RUNTIME = \"gnu\" which consists of libgcc, libstdc++ to provide C/C++ runtime support. However it's possible to use LLVM runtime to replace it where compile-rt, llvm libunwind, and libc++ are used to provide C/C++ runtime, while GNU runtime works with both GCC and Clang, LLVM runtime is only tested with Clang compiler, switching to use LLVM runtime is ","default_branch":null,"files":null,"tree":[],"storefront":"/r/kraj","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kraj/meta-clang/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}