]> git.lizzy.rs Git - rust.git/commit
rustc: Don't create empty codegen units
authorAlex Crichton <alex@alexcrichton.com>
Wed, 4 Oct 2017 23:21:38 +0000 (16:21 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 4 Oct 2017 23:21:38 +0000 (16:21 -0700)
commita70c5cb68f84e576b16fbca86453240290e7cc22
treea531b73bb33be5b83bb5b2ae13c75f95f89fc64d
parent417ffc98dfc770c27f7f2d7430f0edf975576591
rustc: Don't create empty codegen units

This'll end up just creating a bunch of object files that otherwise wouldn't
exist, so skip that extra work if possible.
src/librustc_trans/base.rs
src/librustc_trans/partitioning.rs