build: link with lld if available
Change-Id: Iaf1e7110e629fa1fa16bbd8b8cc1418fafd2408b
This commit is contained in:
1 parent
e16ac8693f
commit
ea5ce49651
3 files changed
+4
-6
No files matched your search
@@ -39,6 +39,6 @@ elif [[ $ID_LIKE == *debian* ]]; then
|
||||
fi
|
||||
|
||||
elif [[ $ID_LIKE == *fedora* ]]; then
|
||||
sudo dnf -y install gcc-c++ libasan pkgconf-pkg-config python3 \
|
||||
sudo dnf -y install gcc-c++ libasan lld pkgconf-pkg-config python3 \
|
||||
boost-devel openssl-devel sqlite-devel
|
||||
fi
|
||||
@@ -137,9 +137,7 @@ class GccBasicFlags(CompilerFlags):
|
||||
def getGeneralFlags(self, conf):
|
||||
flags = super(GccBasicFlags, self).getGeneralFlags(conf)
|
||||
flags['CXXFLAGS'] += ['-std=c++14']
|
||||
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
|
||||
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@ supported:
|
||||
- Fedora >= 29
|
||||
- Gentoo Linux
|
||||
- Raspberry Pi OS (formerly Raspbian) >= 2019-06-20
|
||||
- FreeBSD >= 12.0
|
||||
- FreeBSD >= 12.2
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
@@ -123,7 +123,7 @@ The following lists the steps to install these prerequisites on various common p
|
||||
|
||||
.. code-block:: sh
|
||||
|
||||
sudo pkg install doxygen graphviz py37-sphinx
|
||||
sudo pkg install doxygen graphviz py39-sphinx
|
||||
|
||||
Build
|
||||
-----
|
||||
|
||||
Reference in new issue
Block a user