summaryrefslogtreecommitdiff
path: root/src/compilers/clang-18-native.TARGETS
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-10-30 10:25:30 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-11-07 14:48:55 +0100
commit16d901c576bbfda339848bc1dd83f3776a6d61bf (patch)
tree165737397dee8cb92f2cfe1268296fda78ec2593 /src/compilers/clang-18-native.TARGETS
parentea802ce335c004c6e4d3f12c6bffe308f3c96cdb (diff)
downloadbootstrappable-toolchain-16d901c576bbfda339848bc1dd83f3776a6d61bf.tar.gz
Simplify logic of INCLUDE_LINTER lookup in clang-18
Diffstat (limited to 'src/compilers/clang-18-native.TARGETS')
-rw-r--r--src/compilers/clang-18-native.TARGETS39
1 files changed, 11 insertions, 28 deletions
diff --git a/src/compilers/clang-18-native.TARGETS b/src/compilers/clang-18-native.TARGETS
index ee433f7..c4eef3c 100644
--- a/src/compilers/clang-18-native.TARGETS
+++ b/src/compilers/clang-18-native.TARGETS
@@ -151,35 +151,18 @@
, "-DLLVM_INCLUDE_DOCS=OFF"
, "-DLLVM_INCLUDE_TESTS=OFF"
, "-DLLVM_INSTALL_TOOLCHAIN_ONLY=ON"
- , { "type": "join"
- , "$1":
- [ "-DLLVM_ENABLE_PROJECTS="
- , { "type": "join_cmd"
- , "$1":
- [ { "type": "join"
- , "separator": ";"
- , "$1":
- { "type": "++"
- , "$1":
- [ ["clang"]
- , { "type": "if"
- , "cond":
- { "type": "lookup"
- , "key": "INCLUDE_LINTER"
- , "map":
- { "type": "var"
- , "name": "TOOLCHAIN_CONFIG"
- , "default": {"type": "empty_map"}
- }
- }
- , "then": ["clang-tools-extra"]
- }
- ]
- }
- }
- ]
+ , { "type": "if"
+ , "cond":
+ { "type": "lookup"
+ , "key": "INCLUDE_LINTER"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
}
- ]
+ }
+ , "then": "-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra'"
+ , "else": "-DLLVM_ENABLE_PROJECTS=clang"
}
, "-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libunwind'"
, "-DLLVM_TARGETS_TO_BUILD=X86"