-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common: Handle empty
lib_paths
gracefully
`env::split_paths()` called with an empty string, yields one empty string. This behavior is not really compatible with the forloop it's used in, which in such case is going to produce ` -L ` not followed by any path. This causes rustc to fail. To prevent this issue, enter the loop only when `lib_paths` is not empty. That issue was reproducable on MacOS, where `lib_paths` often ends up being empty.
- Loading branch information
1 parent
43319ab
commit f1eba66
Showing
1 changed file
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters