aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mcompile.py
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-08-27 10:17:14 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-08-29 22:19:52 -0400
commit41c96d50af65ffd3946a7120ef335d7204557596 (patch)
treef5820a1b9f17592f28d5cfa852ae37500a330eb1 /mesonbuild/mcompile.py
parenta70cdebfe7ac9e2ddbe26d604eaff3fe9bba691c (diff)
downloadmeson-41c96d50af65ffd3946a7120ef335d7204557596.zip
meson-41c96d50af65ffd3946a7120ef335d7204557596.tar.gz
meson-41c96d50af65ffd3946a7120ef335d7204557596.tar.bz2
mcompile: treat load-average as a float
`ninja -l` accepts a double. We should do the same. Bug: https://bugs.gentoo.org/810655
Diffstat (limited to 'mesonbuild/mcompile.py')
-rw-r--r--mesonbuild/mcompile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mcompile.py b/mesonbuild/mcompile.py
index bb7ecae..e20485c 100644
--- a/mesonbuild/mcompile.py
+++ b/mesonbuild/mcompile.py
@@ -305,7 +305,7 @@ def add_arguments(parser: 'argparse.ArgumentParser') -> None:
'-l', '--load-average',
action='store',
default=0,
- type=int,
+ type=float,
help='The system load average to try to maintain (if supported).'
)
parser.add_argument(