We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Build::compile_objects
1 parent d34e43b commit a8e0915Copy full SHA for a8e0915
src/lib.rs
@@ -1260,6 +1260,15 @@ impl Build {
1260
fn compile_objects(&self, objs: &[Object], print: &PrintThread) -> Result<(), Error> {
1261
use std::sync::{mpsc::channel, Once};
1262
1263
+ if objs.len() <= 1 {
1264
+ for obj in objs {
1265
+ let (mut cmd, name) = self.create_compile_object_cmd(obj)?;
1266
+ run(&mut cmd, &name, print)?;
1267
+ }
1268
+
1269
+ return Ok(());
1270
1271
1272
// Limit our parallelism globally with a jobserver. Start off by
1273
// releasing our own token for this process so we can have a bit of an
1274
// easier to write loop below. If this fails, though, then we're likely
0 commit comments