<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-clang.git, branch gatesgarth</title>
<subtitle>Mirror of github.com/kraj/meta-clang.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-clang.git/atom?h=gatesgarth</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-clang.git/atom?h=gatesgarth'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/'/>
<updated>2021-09-10T18:06:56+00:00</updated>
<entry>
<title>chromium,gn: Fix typo in depends spec</title>
<updated>2021-09-10T18:06:56+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2021-08-13T19:50:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=cb4e86296715f49335e9ea81c998f543eb0ac7e7'/>
<id>urn:sha1:cb4e86296715f49335e9ea81c998f543eb0ac7e7</id>
<content type='text'>
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>chromium,gn: Do not use runtime-llvm to remove libc++ native deps</title>
<updated>2021-09-10T18:06:56+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2021-08-13T19:21:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=086bf31c52664ec29612dad70ee20ffb62d75749'/>
<id>urn:sha1:086bf31c52664ec29612dad70ee20ffb62d75749</id>
<content type='text'>
This override may not exist in old releases

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>chromium,gn-native: Remove dependency on native libc++</title>
<updated>2021-09-10T18:06:56+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2021-08-13T15:51:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=037a7d8f3d83741b23b6c5266c1e0c26763994d6'/>
<id>urn:sha1:037a7d8f3d83741b23b6c5266c1e0c26763994d6</id>
<content type='text'>
native versions of libcxx and compiler-rt are only available in honister
and newer

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>compiler-rt: Disable sanitizer builds</title>
<updated>2021-02-01T18:58:59+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2021-01-28T05:20:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=04a1194c78563524659f27941304e564956792b1'/>
<id>urn:sha1:04a1194c78563524659f27941304e564956792b1</id>
<content type='text'>
Sanitizers include crypt.h from libcrypt to build, so when using llvm runtime this
becomes important to break the cyclic dependency

compiler-rt-&gt;libxcrypt-&gt;compiler-rt

Fixes #425

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>clang/llvm: Upgrade to 11.1.0-rc2</title>
<updated>2021-01-26T20:59:02+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2021-01-25T23:49:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=67a7cad4bb48ef569b4eeb4b3c923133d2d422a6'/>
<id>urn:sha1:67a7cad4bb48ef569b4eeb4b3c923133d2d422a6</id>
<content type='text'>
Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>clang: Replace mtune with mcpu to match oe-core</title>
<updated>2021-01-26T20:59:02+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2021-01-25T23:46:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=d4d55a3bf15c164a72d7859b04e6f0539ff9fa59'/>
<id>urn:sha1:d4d55a3bf15c164a72d7859b04e6f0539ff9fa59</id>
<content type='text'>
Fixes Issue #415

Signed-off-by: Khem Raj &lt;raj.khem@gmail.com&gt;
</content>
</entry>
<entry>
<title>clang.bbclass: Set CCACHE_COMPILERCHECK as default value</title>
<updated>2021-01-25T23:41:31+00:00</updated>
<author>
<name>Mike Crowe</name>
<email>mac@mcrowe.com</email>
</author>
<published>2021-01-25T13:28:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=f7b549866822fa7e330a03091dfbd44308e8b50c'/>
<id>urn:sha1:f7b549866822fa7e330a03091dfbd44308e8b50c</id>
<content type='text'>
oe-core's ccache.bbclass contains:

 export CCACHE_COMPILERCHECK ?= "%compiler% -dumpspecs"

which sets a default value and allows others to easily override the
value of CCACHE_COMPILERCHECK if they wish to. Let's update
clang.bbclass to also set only the default value of CCACHE_COMPILERCHECK
too.

Signed-off-by: Mike Crowe &lt;mac@mcrowe.com&gt;
</content>
</entry>
<entry>
<title>clang: for x86_64, set Yocto GCC install search path</title>
<updated>2021-01-25T23:40:54+00:00</updated>
<author>
<name>Hongxu Jia</name>
<email>hongxu.jia@windriver.com</email>
</author>
<published>2021-01-25T08:50:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=39e9ec68cd97a059103c975aa785165c574e0aba'/>
<id>urn:sha1:39e9ec68cd97a059103c975aa785165c574e0aba</id>
<content type='text'>
Under Yocto host, while using clang-native to build, it searches
install host gcc failed which causing include file not found
[snip]
|clang++ -target x86_64-linux  -MMD -MF src/base/files/file_path_constants.o.d -I../../../tools/gn/src -I. \
-isystem/tmp-glibc/work/x86_64-linux/gn-native/87.0.4280.141-r0/recipe-sysroot-native/usr/include -O2 -pipe \
-std=c++17 -c ../../../tools/gn/src/base/files/file_path_constants.cc -o src/base/files/file_path_constants.o
|../../../tools/gn/src/base/files/file_path_constants.cc:7:10: fatal error: 'iterator' file not found
|#include &lt;iterator&gt;
|         ^~~~~~~~
[snip]

Set three Yocto based GCC triple: poky, oe-core and wind river

Before aplly the patch
[snip]
$ ../recipe-sysroot-native/usr/bin/clang++ -v
clang version 11.0.1 (https://github.com/llvm/llvm-project 43ff75f2c3feef64f9d73328230d34dac8832a91)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/buildarea/raid5/hjia/wrlinux-20/build_master-wr_browser_2021012017/build-gn-native/tmp-glibc/work/x86_64-linux/gn-native/87.0.4280.141-r0/chromium-87.0.4280.141/../recipe-sysroot-native/usr/bin
[snip]

After aplly the patch:
[snip]
$ clang-11 -v
clang version 11.0.1 (https://github.com/llvm/llvm-project 22c3241ff9a6224261df48d0258957fd8acc3d64)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /buildarea/raid5/hjia/wrlinux-20/build_master-wr_browser_2021012017/build/tmp-glibc/work/x86_64-linux/clang-native/11.0.1-r0/build/bin
Found candidate GCC installation: /usr/lib//x86_64-wrs-linux/10.1.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-wrs-linux/10.1.0
Selected GCC installation: /usr/lib//x86_64-wrs-linux/10.1.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
[snip]

BTW, it is hardly to insert a triple by the replacement of TARGET_SYS
(=${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}), since TARGET_VENDOR
is different between clang and clang-native

Signed-off-by: Hongxu Jia &lt;hongxu.jia@windriver.com&gt;
</content>
</entry>
<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>qemu: Link with latomic on clang/x86</title>
<updated>2021-01-09T20:56:31+00:00</updated>
<author>
<name>Khem Raj</name>
<email>raj.khem@gmail.com</email>
</author>
<published>2021-01-08T19:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-clang.git/commit/?id=e2d2a029ee122b9cf25f8296c6ce610bf6bebbf6'/>
<id>urn:sha1:e2d2a029ee122b9cf25f8296c6ce610bf6bebbf6</id>
<content type='text'>
clang delegates atomics to runtime library instead of builtins so link
in libatomic on x86/gnu

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