1
0
Fork 0

[WINDOWS] Add bin folder in path

This commit is contained in:
Florian RICHER (MrDev023) 2021-07-24 22:38:33 +02:00
parent bb6d50d76c
commit 98564956ac
9 changed files with 101 additions and 13 deletions

View file

@ -0,0 +1,19 @@
#[cfg(target_os = "windows")]
mod windows;
pub fn configure() -> Result<(), String> {
#[cfg(target_os = "windows")]
windows::configure().ok_or(format!("Failed to configure environment"))?;
#[cfg(not(target_os = "windows"))]
#[cfg(not(target_os = "linux"))]
#[cfg(not(target_os = "macos"))]
{
Err(format!("OS not supported"))
}
#[cfg(any(target_os = "windows", target_os = "linux", target_os = "macos"))]
{
Ok(())
}
}