Skip to content

Commit 4680701

Browse files
authored
fix: append -gnu to Linux binary path in binary_specifier (oxc-project#26)
1 parent a444895 commit 4680701

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/oxc.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl OxcExtension {
2929
};
3030

3131
Ok(format!(
32-
"@oxlint/{platform}-{arch}/{binary}",
32+
"@oxlint/{platform}-{arch}{build}/{binary}",
3333
platform = match platform {
3434
zed::Os::Mac => "darwin",
3535
zed::Os::Linux => "linux",
@@ -40,6 +40,10 @@ impl OxcExtension {
4040
zed::Architecture::X8664 => "x64",
4141
_ => return Err(format!("unsupported architecture: {arch:?}")),
4242
},
43+
build = match platform {
44+
zed::Os::Linux => "-gnu",
45+
_ => "",
46+
},
4347
binary = binary_name,
4448
))
4549
}

0 commit comments

Comments
 (0)