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 @@ -342,8 +342,12 @@ def build_bootstrap(self):
342
342
env = os .environ .copy ()
343
343
env ["CARGO_TARGET_DIR" ] = build_dir
344
344
env ["RUSTC" ] = self .rustc ()
345
- env ["LD_LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" )
346
- env ["DYLD_LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" )
345
+ env ["LD_LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" ) + \
346
+ (os .pathsep + env ["LD_LIBRARY_PATH" ]) \
347
+ if "LD_LIBRARY_PATH" in env else ""
348
+ env ["DYLD_LIBRARY_PATH" ] = os .path .join (self .bin_root (), "lib" ) + \
349
+ (os .pathsep + env ["DYLD_LIBRARY_PATH" ]) \
350
+ if "DYLD_LIBRARY_PATH" in env else ""
347
351
env ["PATH" ] = os .path .join (self .bin_root (), "bin" ) + \
348
352
os .pathsep + env ["PATH" ]
349
353
if not os .path .isfile (self .cargo ()):
You can’t perform that action at this time.
0 commit comments