<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-clang.git/recipes-core/meta, branch hardknott</title>
<subtitle>Mirror of github.com/kraj/meta-clang.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-clang.git/atom?h=hardknott</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-clang.git/atom?h=hardknott'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/'/>
<updated>2021-01-25T23:38:12+00:00</updated>
<entry>
<title>Add the target option to the CLANG environment variables.</title>
<updated>2021-01-25T23:38:12+00:00</updated>
<author>
<name>Tobias Bayer</name>
<email>tobiasbayer@outlook.de</email>
</author>
<published>2021-01-21T20:22:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=dca6dd429d046000ec8649ed57dca5193aeb6252'/>
<id>urn:sha1:dca6dd429d046000ec8649ed57dca5193aeb6252</id>
<content type='text'>
This commit fixes an issue when building a cmake based project where clang-tidy is configured as co-compiler. Without this option clang-tidy will fail as it cannot determinate the target architecture.

Signed-off-by: Tobias Bayer &lt;tobiasbayer@outlook.de&gt;
</content>
</entry>
<entry>
<title>Remove compiler arguments from CLANG_TIDY_EXE</title>
<updated>2020-10-21T21:29:52+00:00</updated>
<author>
<name>MQueiros</name>
<email>maurofrqueiros@gmail.com</email>
</author>
<published>2020-10-20T15:01:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=9d5fd8357d2f00a273f3d80fb37bb07cc537a155'/>
<id>urn:sha1:9d5fd8357d2f00a273f3d80fb37bb07cc537a155</id>
<content type='text'>
cclang-tidy doesn't process compilation flags like "-mlittle-endian" and "sysroot". The current export tries to use those flags, which makes clang-tidy fail like in the following example:

&gt; $ aarch64-poky-linux-clang-tidy fibonacci.cpp -mlittle-endian --sysroot=/opt/mgu22/sysroots/aarch64-poky-linux
&gt; LLVM ERROR: CommonOptionsParser: failed to parse command-line arguments. [CommonOptionsParser]: aarch64-poky-linux-clang-tidy: Unknown command line argument '-mlittle-endian'.  Try: 'aarch64-poky-linux-clan$
&gt; aarch64-poky-linux-clang-tidy: Did you mean '--list-checks'?
&gt; aarch64-poky-linux-clang-tidy: Unknown command line argument '--sysroot=/opt/mgu22/sysroots/aarch64-poky-linux'.  Try: 'aarch64-poky-linux-clang-tidy --help'
&gt; aarch64-poky-linux-clang-tidy: Did you mean '--color=/opt/mgu22/sysroots/aarch64-poky-linux'?

This change removes those compiler arguments:

&gt; $ aarch64-poky-linux-clang-tidy fibonacci.cpp
&gt; Error while trying to load a compilation database:
&gt; Could not auto-detect compilation database for file "fibonacci.cpp"
&gt; No compilation database found in /home/mqueiros/workspace/minimal-working-example/fibonacci or any parent directory
&gt; fixed-compilation-database: Error while opening fixed database: No such file or directory
&gt; json-compilation-database: Error while opening JSON database: No such file or directory
&gt; Running without flags.

Signed-off-by: Mauro Queiros &lt;maurofrqueiros@gmail.com&gt;
</content>
</entry>
<entry>
<title>meta-environment-ext: Add bbappend to insert clang variables into env</title>
<updated>2020-09-13T22:04:45+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2020-09-13T07:21:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=e47ed0398fdaeee872cea9990117db31baede1a4'/>
<id>urn:sha1:e47ed0398fdaeee872cea9990117db31baede1a4</id>
<content type='text'>
This helps defining CLANG* env vars in extensible SDK

Fixes Issue #370

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>meta-environment: Conditionally add clang specific environment variables</title>
<updated>2020-06-29T03:38:56+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2020-06-25T19:19:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=1c043426a5dd0388ffd83a359cbbbf72b97bb1b4'/>
<id>urn:sha1:1c043426a5dd0388ffd83a359cbbbf72b97bb1b4</id>
<content type='text'>
Only when CLANGSDK = 1

Fixes Issue #338

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>clang: Enable a cross version of clang-tidy</title>
<updated>2019-02-01T04:11:09+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2019-02-01T04:08:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=4d5c8f7a29c50eaed975609c8509c876eb378b99'/>
<id>urn:sha1:4d5c8f7a29c50eaed975609c8509c876eb378b99</id>
<content type='text'>
define CLANG_TIDY_EXE which is used by some build systems e.g. cmake

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>classes: Do not replace armv7ve with armv7a anymore</title>
<updated>2017-08-29T15:51:10+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2017-08-29T15:51:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=b6b9f4a6cf5e2d250f39c58d0f9da6340dac22fb'/>
<id>urn:sha1:b6b9f4a6cf5e2d250f39c58d0f9da6340dac22fb</id>
<content type='text'>
clang-5.0 supports the option now

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>meta-environment: Drop toolchain-clang override</title>
<updated>2016-05-11T02:49:56+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2016-05-11T02:49:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=16aab174d073f382f635b8086fd9a545da332953'/>
<id>urn:sha1:16aab174d073f382f635b8086fd9a545da332953</id>
<content type='text'>
It does not work and moreover its redundant

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>meta-environment: Remove cmdline options unknown to clang</title>
<updated>2016-05-11T02:28:58+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2016-05-11T02:28:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=8a8d7388843ea4e16796459d7a4e60201ce92b3b'/>
<id>urn:sha1:8a8d7388843ea4e16796459d7a4e60201ce92b3b</id>
<content type='text'>
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>Remove -mmusl and -muclibc</title>
<updated>2016-04-01T22:45:41+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2016-04-01T22:45:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=18037e0158dd8956b4851f881acad06c42140a60'/>
<id>urn:sha1:18037e0158dd8956b4851f881acad06c42140a60</id>
<content type='text'>
These options were introduced in OE-Core to support multi libc SDKs
and added with

Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Date:   Sat Jul 25 14:48:21 2015 +0100

    toolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc selection

    gcc-cross-canadian-&lt;arch&gt; is only built once. It needs to target all the
    different libcs, not just the currently selected one. This change ensures
    that if another libc is used, the compiler correctly selects the right one.

    [YOCTO #8025]

    (From OE-Core rev: da2e92e256054b137a1646fdad1fe1a47ba3215a)

Clang however acts based on crosscompiler name and does not have option to controlled
multi libc scene

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>sdk: Add support for adding clang to SDK</title>
<updated>2015-07-09T05:41:19+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2015-07-09T05:41:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=cf4d3b3c7c2d21ac581272197427f4872ddf4de1'/>
<id>urn:sha1:cf4d3b3c7c2d21ac581272197427f4872ddf4de1</id>
<content type='text'>
Also export CLANGCC, CLANGCXX, CLANGCPP in SDK environment which can
then be used to compile applications in SDK

Additionally remove -mthumb-interwork from compiler options if target is
arm

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
</feed>
