scheds-rust: add explanation for chaining schedulers

This commit is contained in:
takase1121 2024-04-23 08:30:38 +08:00
parent 5d20f89a87
commit 3e12676ca2
No known key found for this signature in database
GPG Key ID: 60EEFFC68EB3031B

View File

@ -1,7 +1,13 @@
# the previous scheduler in the compile sequence
sched = []
# to add a new scheduler, assign the output of your custom_target to sched
# Since meson and cargo tries build in parallel, this can cause significant load
# when meson tries to launch N instances of cargo and cargo tries to compile N files
# in parallel (N*N compiler instances in total).
#
# To prevent this from happening, we try to force meson to build them sequentially
# by making the "current" scheduler depend on another scheduler.
# To add a new scheduler, assign the output of your custom_target to sched
# and add sched as a dependency to your custom_target. For example:
#
# sched = custom_target('scx_mysched',