When generating tasks dynamically, it is not possible to specify a "depends_on" task to run on a different buildvariant. For example, the following task (which runs on the "enterprise-rhel-62-64-bit-majority-read-concern-off-required" buildvariant) should create a "compile" task on buildvariant "enterprise-rhel-62-64-bit":
The patch build can be seen here: https://evergreen.mongodb.com/version/5d237977c9ec442fc4a4158c. The task "burn_in:enterprise-rhel-62-64-bit-majority-read-concern-off-required_noPassthroughWithMongod_0" does have the correct dependency (compile in enterprise-rhel-62-64-bit) but I had to manually add the compile task on enterprise-rhel-62-64-bit, it was not generated by Evergreen.
Attached to this ticket is the full project file for this group of generated tasks.