]> git.lizzy.rs Git - rust.git/commit
Auto merge of #81641 - bjorn3:find_codegen_backend, r=davidtwco
authorbors <bors@rust-lang.org>
Tue, 6 Apr 2021 07:16:19 +0000 (07:16 +0000)
committerbors <bors@rust-lang.org>
Tue, 6 Apr 2021 07:16:19 +0000 (07:16 +0000)
commit354cc751b74e813f180755fa67bebcb669825755
tree9656d507d8be6e008ddc95fe02a8e8236a0fc853
parenta6e7a5aa5dc842ddb64607040aefb6ec33e22b59
parent7f19a2d2de32ea61a8c9b8bca44a13894954b3be
Auto merge of #81641 - bjorn3:find_codegen_backend, r=davidtwco

Find codegen backends in more locations

* Search in the sysroot passed using `--sysroot` in addition to the default sysroot.
* Search for `librustc_codegen_$name.so` in addition to `librustc_codegen_$name-$release.so`.

This combined would allow putting `librustc_codegen_cranelift.so` in the right location of a sysroot passed using `--sysroot`.
compiler/rustc_driver/src/lib.rs
compiler/rustc_interface/src/util.rs