diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-06-10 11:05:20 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-06-12 15:12:01 +0200 |
commit | 172c29862c2bad21fff84e2798cc3fd16822ec57 (patch) | |
tree | 7c93ee4a8dfc279322862dd74ad106628ce5b813 /src/compilers/clang-20-native.TARGETS | |
parent | 93720597f80740ec1121140e7f84401b766d70ab (diff) | |
download | bootstrappable-toolchain-172c29862c2bad21fff84e2798cc3fd16822ec57.tar.gz |
Add IWYU support to clang 20 toolchain
Diffstat (limited to 'src/compilers/clang-20-native.TARGETS')
-rw-r--r-- | src/compilers/clang-20-native.TARGETS | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/compilers/clang-20-native.TARGETS b/src/compilers/clang-20-native.TARGETS index 838106c..047f7c8 100644 --- a/src/compilers/clang-20-native.TARGETS +++ b/src/compilers/clang-20-native.TARGETS @@ -65,7 +65,7 @@ { "type": ["@", "rules", "CC/foreign/shell", "data"] , "arguments_config": ["TOOLCHAIN_CONFIG"] , "project": ["patched_sources"] - , "localbase": ["binutils_dir"] + , "localbase": ["binutils_dir", ["@", "iwyu", "", "sources"]] , "cmds": [ { "type": "join" , "$1": @@ -161,7 +161,15 @@ , "default": {"type": "empty_map"} } } - , "then": "-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra'" + , "then": + { "type": "join" + , "separator": " " + , "$1": + [ "-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra'" + , "-DLLVM_EXTERNAL_PROJECTS=iwyu" + , "-DLLVM_EXTERNAL_IWYU_SOURCE_DIR=${LOCALBASE}/iwyu" + ] + } , "else": "-DLLVM_ENABLE_PROJECTS=clang" } , "-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libunwind'" |