Use target_os = linux instead.

This commit is contained in:
KtorZ 2024-10-02 10:59:50 +02:00
parent 19fe1d37e7
commit f4dbe1624a
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
2 changed files with 6 additions and 5 deletions

View File

@ -47,9 +47,10 @@ serde_json = "1.0.94"
thiserror = "1.0.39" thiserror = "1.0.39"
uplc = { path = '../uplc', version = "1.1.4" } uplc = { path = '../uplc', version = "1.1.4" }
[target.'cfg(target_env = "musl")'.dependencies]
openssl = { version = "0.10.66", features = ["vendored"], optional = true }
openssl-probe = { version = "0.1.5", optional = true }
[target.'cfg(not(windows))'.dependencies] [target.'cfg(not(windows))'.dependencies]
xdg = "2.5.2" xdg = "2.5.2"
[target.'cfg(target_os = "linux")'.dependencies]
openssl = { version = "0.10.66", features = ["vendored"], optional = true }
openssl-probe = { version = "0.1.5", optional = true }
xdg = "2.5.2"

View File

@ -14,7 +14,7 @@ mod cmd;
fn main() -> miette::Result<()> { fn main() -> miette::Result<()> {
panic_handler(); panic_handler();
#[cfg(target_env = "musl")] #[cfg(target_os = "linux")]
openssl_probe::init_ssl_cert_env_vars(); openssl_probe::init_ssl_cert_env_vars();
match Cmd::default() { match Cmd::default() {