rootcx-platform 0.11.3

RootCX platform utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::path::{Path, PathBuf};

pub const TARGET_TRIPLE: &str = env!("ROOTCX_TARGET");

pub fn binary_name(name: &str) -> String {
    if cfg!(windows) { format!("{name}.exe") } else { name.to_string() }
}

pub fn binary_path(dir: &Path, name: &str) -> PathBuf {
    dir.join(binary_name(name))
}