build: link with lld if available
Change-Id: Ie390c511c711508b6bb8c326a9a62fb1eca291c5
diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py
index 3ba2dc3..4debb4e 100644
--- a/.waf-tools/default-compiler-flags.py
+++ b/.waf-tools/default-compiler-flags.py
@@ -137,9 +137,7 @@
def getGeneralFlags(self, conf):
flags = super(GccBasicFlags, self).getGeneralFlags(conf)
flags['CXXFLAGS'] += ['-std=c++17']
- if Utils.unversioned_sys_platform() == 'linux':
- flags['LINKFLAGS'] += ['-fuse-ld=gold']
- elif Utils.unversioned_sys_platform() == 'freebsd':
+ if Utils.unversioned_sys_platform() != 'darwin':
flags['LINKFLAGS'] += ['-fuse-ld=lld']
return flags