Skip to content

Commit

Permalink
feat: don't operate on musl toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
0xWOLAND authored and leruaa committed Nov 6, 2024
1 parent dcb30e5 commit 0ec3fff
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ pub fn is_supported_target() -> bool {
}

pub fn get_target() -> String {
target_lexicon::HOST.to_string()
let mut target: target_lexicon::Triple = target_lexicon::HOST;

// We don't want to operate on the musl toolchain even if the CLI was compiled with musl
if target.environment == target_lexicon::Environment::Musl {
target.environment = target_lexicon::Environment::Gnu;
}

target.to_string()
}

pub async fn get_toolchain_download_url(client: &Client, target: String) -> String {
Expand Down

0 comments on commit 0ec3fff

Please sign in to comment.