Skip to content

Commit

Permalink
homedir(): add special case for Haiku
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicah committed Apr 30, 2017
1 parent 6b6dc8e commit 91c9ae2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cargo/util/config.rs
Expand Up @@ -674,6 +674,10 @@ pub fn homedir(cwd: &Path) -> Option<PathBuf> {
return cargo_home
}

if cfg!(target_os = "haiku") {
return Some(PathBuf::from("/boot/home/config/settings/cargo"))
}

// If `CARGO_HOME` wasn't defined then we want to fall back to
// `$HOME/.cargo`. Note that currently, however, the implementation of
// `env::home_dir()` uses the $HOME environment variable *on all platforms*.
Expand Down

0 comments on commit 91c9ae2

Please sign in to comment.