diff options
author | 2015-01-14 10:38:30 +0300 | |
---|---|---|
committer | 2015-01-14 10:38:30 +0300 | |
commit | 9aa073067bb0fe62bd88315e4d88a8fe7ac369ea (patch) | |
tree | 1c8cdba0a062d91bd1684bd37408dce4e7e3072f | |
parent | handle rust-lldb symlink (diff) | |
download | eselect-rust-9aa073067bb0fe62bd88315e4d88a8fe7ac369ea.tar.gz eselect-rust-9aa073067bb0fe62bd88315e4d88a8fe7ac369ea.tar.bz2 eselect-rust-9aa073067bb0fe62bd88315e4d88a8fe7ac369ea.zip |
rust-gdb support
Seems like new rust installs rust-gdb script instead of lldb. and
eselect should be aware of this.
-rw-r--r-- | src/modules/rust.eselect | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/rust.eselect b/src/modules/rust.eselect index d936017..26b2fae 100644 --- a/src/modules/rust.eselect +++ b/src/modules/rust.eselect @@ -65,6 +65,7 @@ unset_version() { remove_symlink "${EROOT}"/usr/bin/rustc remove_symlink "${EROOT}"/usr/bin/rustdoc remove_symlink "${EROOT}"/usr/bin/rust-lldb + remove_symlink "${EROOT}"/usr/bin/rust-gdb } # set the rust version @@ -90,7 +91,8 @@ set_version() { set_symlink "${EROOT}/usr/bin/rustc-${target}" "${EROOT}/usr/bin/rustc" || die -q "rustc symlink setting failed" set_symlink "${EROOT}/usr/bin/rustdoc-${target}" "${EROOT}/usr/bin/rustdoc" || die -q "rustdoc symlink setting failed" - set_symlink "${EROOT}/usr/bin/rust-lldb-${target}" "${EROOT}/usr/bin/rust-lldb" || write_warning_msg "rust-lldb symlink setting failed (it can be ok for the older rust)" + set_symlink "${EROOT}/usr/bin/rust-lldb-${target}" "${EROOT}/usr/bin/rust-lldb" || write_warning_msg "rust-lldb symlink setting failed (it can be ok for the older or newer rust)" + set_symlink "${EROOT}/usr/bin/rust-gdb-${target}" "${EROOT}/usr/bin/rust-gdb" || write_warning_msg "rust-gdb symlink setting failed (it can be ok for the older rust)" } ### list action ### |