File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -355,8 +355,12 @@ def build_bootstrap(self):
355
355
env = os .environ .copy ()
356
356
env ["CARGO_TARGET_DIR" ] = build_dir
357
357
env ["RUSTC" ] = self .rustc ()
358
- env ["LD_LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" )
359
- env ["DYLD_LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" )
358
+ env ["LD_LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" ) + \
359
+ (os .pathsep + env ["LD_LIBRARY_PATH" ]) \
360
+ if "LD_LIBRARY_PATH" in env else ""
361
+ env ["DYLD_LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" ) + \
362
+ (os .pathsep + env ["DYLD_LIBRARY_PATH" ]) \
363
+ if "DYLD_LIBRARY_PATH" in env else ""
360
364
env ["PATH" ] = os .path .join (self .bin_root (), "bin" ) + \
361
365
os .pathsep + env ["PATH" ]
362
366
if not os .path .isfile (self .cargo ()):
You can’t perform that action at this time.
0 commit comments