We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fcfd58 commit 7badf1eCopy full SHA for 7badf1e
tc_build/kernel.py
@@ -44,6 +44,8 @@ def build(self):
44
if self.can_use_clang_as_hostcc():
45
if 'CC' in self.make_variables:
46
self.make_variables['HOSTCC'] = self.make_variables['CC']
47
+ if self.can_use_lld_as_hostld():
48
+ self.make_variables['HOSTLDFLAGS'] = '-fuse-ld=lld'
49
else:
50
self.make_variables['HOSTCC'] = 'gcc'
51
self.make_variables['HOSTCXX'] = 'g++'
@@ -138,6 +140,9 @@ def get_toolchain_version(self):
138
140
def can_use_clang_as_hostcc(self):
139
141
return self._run_clang('-c')
142
143
+ def can_use_lld_as_hostld(self):
144
+ return self._run_clang('-fuse-lld')
145
+
146
def needs_binutils(self):
147
return not self.can_use_ias()
148
0 commit comments