]> git.lizzy.rs Git - rust.git/commit
rustbuild: Restore Config.libdir_relative
authorJosh Stone <jistone@redhat.com>
Mon, 19 Feb 2018 22:05:21 +0000 (14:05 -0800)
committerJosh Stone <jistone@redhat.com>
Mon, 19 Feb 2018 22:17:31 +0000 (14:17 -0800)
commit80970e6953faaba886215d8abd34e70f1d510103
treede0deb152aa4d56c21ad3a95e4c53aa9424bb533
parent27a046e9338fb0455c33b13e8fe28da78212dedc
rustbuild: Restore Config.libdir_relative

This re-introduces a `Config.libdir_relative` field, now derived from
`libdir` and made relative to `prefix` if necessary.

This fixes a regression from #46592 when `--libdir` is given an absolute
path.  `Builder::sysroot_libdir` should always use a relative path so
its callers don't clobber system locations, and `librustc` also asserts
that `CFG_LIBDIR_RELATIVE` is really relative.
src/bootstrap/builder.rs
src/bootstrap/compile.rs
src/bootstrap/config.rs