summaryrefslogtreecommitdiff
path: root/devel/electron5/files/patch-build_toolchain_get__concurrent__links.py
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron5/files/patch-build_toolchain_get__concurrent__links.py')
-rw-r--r--devel/electron5/files/patch-build_toolchain_get__concurrent__links.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/devel/electron5/files/patch-build_toolchain_get__concurrent__links.py b/devel/electron5/files/patch-build_toolchain_get__concurrent__links.py
deleted file mode 100644
index 80deb4907cc2..000000000000
--- a/devel/electron5/files/patch-build_toolchain_get__concurrent__links.py
+++ /dev/null
@@ -1,17 +0,0 @@
---- build/toolchain/get_concurrent_links.py.orig 2019-04-08 08:32:38 UTC
-+++ build/toolchain/get_concurrent_links.py
-@@ -46,6 +46,14 @@ def _GetTotalMemoryInBytes():
- return int(subprocess.check_output(['sysctl', '-n', 'hw.memsize']))
- except Exception:
- return 0
-+ elif sys.platform.startswith('freebsd'):
-+ try:
-+ avail_bytes = int(subprocess.check_output(['sysctl', '-n', 'hw.physmem']))
-+ # With -fuse-lld it doesn't take a lot of ram, feel free to change that
-+ # 1 * ... to needed amount
-+ return max(1, avail_bytes / (1 * (2 ** 30))) # total / 4GB
-+ except Exception:
-+ return 1
- # TODO(scottmg): Implement this for other platforms.
- return 0
-