File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,6 @@ fn main() {
41
41
. stdout ;
42
42
let default_sysroot = std:: str:: from_utf8 ( & default_sysroot) . unwrap ( ) . trim ( ) ;
43
43
44
- let extra_ld_lib_path =
45
- default_sysroot. to_string ( ) + ":" + sysroot. join ( "lib" ) . to_str ( ) . unwrap ( ) ;
46
- if cfg ! ( target_os = "macos" ) {
47
- env:: set_var (
48
- "DYLD_LIBRARY_PATH" ,
49
- env:: var ( "DYLD_LIBRARY_PATH" ) . unwrap_or ( String :: new ( ) ) + ":" + & extra_ld_lib_path,
50
- ) ;
51
- } else if cfg ! ( unix) {
52
- env:: set_var (
53
- "LD_LIBRARY_PATH" ,
54
- env:: var ( "LD_LIBRARY_PATH" ) . unwrap_or ( String :: new ( ) ) + ":" + & extra_ld_lib_path,
55
- ) ;
56
- }
57
-
58
44
// Ensure that the right toolchain is used
59
45
env:: set_var ( "RUSTUP_TOOLCHAIN" , env ! ( "RUSTUP_TOOLCHAIN" ) ) ;
60
46
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- dir=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) /../build" ; pwd)
6
- export LD_LIBRARY_PATH=" $( rustc --print sysroot) /lib:" $dir " /lib"
5
+ export LD_LIBRARY_PATH=" $( rustc --print sysroot) /lib"
7
6
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
You can’t perform that action at this time.
0 commit comments