about summary refs log tree commit diff
path: root/src/bootstrap/config.toml.example
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-05-20 20:55:52 +0000
committerbors <bors@rust-lang.org>2017-05-20 20:55:52 +0000
commit01951a61a49dca35747dc9ba03e5536f337de239 (patch)
tree6aafa8ab9a72283d05b5be67208d245e6f9c3139 /src/bootstrap/config.toml.example
parent1cda810970186cf01a8134db53b13f8177cc56ab (diff)
parentdd0855d44b61a979983ae329eb84d1928b5f7eb7 (diff)
Auto merge of #42069 - QuietMisdreavus:low_pri, r=alexchrichton
Add an option to run rustbuild on low priority on Windows and Unix

This is a resurrection of #40776, combining their Windows setup with an additional setup on Unix to set the program group's *nice*ness to +10 (low-but-not-lowest priority, mirroring the priority in the Windows setup) when the `low_priority` option is on.
Diffstat (limited to 'src/bootstrap/config.toml.example')
-rw-r--r--src/bootstrap/config.toml.example4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/config.toml.example b/src/bootstrap/config.toml.example
index df180be4e27..95cca96f7fc 100644
--- a/src/bootstrap/config.toml.example
+++ b/src/bootstrap/config.toml.example
@@ -152,6 +152,10 @@
 # known-good version of OpenSSL, compile it, and link it to Cargo.
 #openssl-static = false
 
+# Run the build with low priority, by setting the process group's "nice" value
+# to +10 on Unix platforms, and by using a "low priority" job object on Windows.
+#low-priority = false
+
 # =============================================================================
 # General install configuration options
 # =============================================================================