Iridium is a free, open, and libre browser modification of the Chromium code base, with privacy being enhanced in several key areas. Automatic transmission of partial queries, keywords, metrics to central services is inhibited and only occurs with consent. WWW: https://iridiumbrowser.de/
17 lines
705 B
Python
17 lines
705 B
Python
--- build/toolchain/get_concurrent_links.py.orig 2017-04-19 19:06:28 UTC
|
|
+++ build/toolchain/get_concurrent_links.py
|
|
@@ -45,6 +45,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
|
|
|