summaryrefslogtreecommitdiff
path: root/security/tor-browser/patches/patch-build_moz.configure_rust.configure
blob: 8cb73377c6a50d1e9d9e4109d178340c20fa84da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-build_moz.configure_rust.configure,v 1.4 2020/10/07 11:10:34 wiz Exp $

* Do not match rumprun toolchain for NetBSD,
  narrowed should be one not two.

--- build/moz.configure/rust.configure.orig	2019-10-10 18:07:24.000000000 +0000
+++ build/moz.configure/rust.configure
@@ -321,7 +321,8 @@ def rust_triple_alias(host_or_target, ho
             narrowed = [
                 c for c in candidates
                 if c.target.raw_os == host_or_target.raw_os and
-                   c.target.raw_cpu == host_or_target.raw_cpu
+                   c.target.raw_cpu == host_or_target.raw_cpu and
+                   not c.rust_target.endswith("-rumprun-netbsd")
             ]
             if len(narrowed) == 1:
                 return narrowed[0].rust_target