summaryrefslogtreecommitdiff
path: root/src/compilers/clang-20-native.TARGETS
diff options
context:
space:
mode:
Diffstat (limited to 'src/compilers/clang-20-native.TARGETS')
-rw-r--r--src/compilers/clang-20-native.TARGETS47
1 files changed, 44 insertions, 3 deletions
diff --git a/src/compilers/clang-20-native.TARGETS b/src/compilers/clang-20-native.TARGETS
index 047f7c8..f7c6c3c 100644
--- a/src/compilers/clang-20-native.TARGETS
+++ b/src/compilers/clang-20-native.TARGETS
@@ -151,6 +151,48 @@
, "-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_LLD"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ }
+ , "then": ["lld"]
+ }
+ ]
+ }
+ }
+ ]
+ }
+ ]
+ }
, { "type": "if"
, "cond":
{ "type": "lookup"
@@ -165,12 +207,11 @@
{ "type": "join"
, "separator": " "
, "$1":
- [ "-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra'"
- , "-DLLVM_EXTERNAL_PROJECTS=iwyu"
+ [ "-DLLVM_EXTERNAL_PROJECTS=iwyu"
, "-DLLVM_EXTERNAL_IWYU_SOURCE_DIR=${LOCALBASE}/iwyu"
]
}
- , "else": "-DLLVM_ENABLE_PROJECTS=clang"
+ , "else": ""
}
, "-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libunwind'"
, "-DLLVM_TARGETS_TO_BUILD=X86"