]> git.lizzy.rs Git - rust.git/commit
driver: Improve check for rustc arg
authorMichael Wright <mikerite@lavabit.com>
Thu, 6 Sep 2018 05:01:56 +0000 (07:01 +0200)
committerMichael Wright <mikerite@lavabit.com>
Thu, 6 Sep 2018 05:01:56 +0000 (07:01 +0200)
commit4f7a260472d1722c8b2bf0771c875e69f3a2bf48
tree57763d16a69989c4e5d84c0a69c6ca1cf0f7363d
parented38d9c79f6c8613f508e024d4aa0d78b8b6e108
driver: Improve check for rustc arg

The rustc arg might not be exactly "rustc". It may be any path to a rustc
executable (especially if the RUSTC environment variable is set when
executing cargo). Rather check that it is a path with 'rustc' file stem.
src/driver.rs