aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/platform/linux.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/platform/linux.py')
-rw-r--r--python/servo/platform/linux.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/python/servo/platform/linux.py b/python/servo/platform/linux.py
index e49154d8ff2..a5d0ea6bce2 100644
--- a/python/servo/platform/linux.py
+++ b/python/servo/platform/linux.py
@@ -127,6 +127,17 @@ class Linux(Base):
installed_something |= self._platform_bootstrap_gstreamer(force)
return installed_something
+ def linker_flag(self) -> str:
+ # the rust-lld binary downloaded by rustup
+ # doesn't respect NIX_LDFLAGS and also needs
+ # other patches to work correctly. Use system
+ # version of lld for now. See
+ # https://github.com/NixOS/nixpkgs/issues/220717
+ if self.distro.lower() == 'nixos':
+ return '-C link-arg=-fuse-ld=lld'
+ else:
+ return '-Zgcc-ld=lld'
+
def install_non_gstreamer_dependencies(self, force: bool) -> bool:
install = False
pkgs = []