summaryrefslogtreecommitdiff
path: root/src/compilers/clang-17-native.TARGETS
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-06-06 12:29:03 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2025-06-12 15:12:01 +0200
commitc95662f87825174b359217479b46efd567c0318d (patch)
tree939a287c1a34f3443979c75fad7df280279860df /src/compilers/clang-17-native.TARGETS
parent172c29862c2bad21fff84e2798cc3fd16822ec57 (diff)
downloadbootstrappable-toolchain-c95662f87825174b359217479b46efd567c0318d.tar.gz
clang: Support providing lld linker in toolchain
Add new TOOLCHAIN_CONFIG flag that enables the lld project in the built toolchain.
Diffstat (limited to 'src/compilers/clang-17-native.TARGETS')
-rw-r--r--src/compilers/clang-17-native.TARGETS12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/compilers/clang-17-native.TARGETS b/src/compilers/clang-17-native.TARGETS
index 78b2bd4..3f0837f 100644
--- a/src/compilers/clang-17-native.TARGETS
+++ b/src/compilers/clang-17-native.TARGETS
@@ -170,6 +170,18 @@
}
, "then": ["clang-tools-extra"]
}
+ , { "type": "if"
+ , "cond":
+ { "type": "lookup"
+ , "key": "INCLUDE_LLD"
+ , "map":
+ { "type": "var"
+ , "name": "TOOLCHAIN_CONFIG"
+ , "default": {"type": "empty_map"}
+ }
+ }
+ , "then": ["lld"]
+ }
]
}
}