Try to bundle openssl with the Aiken binary to avoid core dumps on Linux
This commit is contained in:
@@ -47,5 +47,11 @@ serde_json = "1.0.94"
|
||||
thiserror = "1.0.39"
|
||||
uplc = { path = '../uplc', version = "1.1.3" }
|
||||
|
||||
openssl = { version = "0.10.66", features = ["vendored"], optional = true }
|
||||
openssl-probe = { version = "0.1.5", optional = true }
|
||||
|
||||
[features]
|
||||
bundle_openssl = ["dep:openssl", "dep:openssl-probe"]
|
||||
|
||||
[target.'cfg(not(windows))'.dependencies]
|
||||
xdg = "2.5.2"
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
use aiken_project::{config, pretty};
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use cmd::completion;
|
||||
use cmd::{
|
||||
blueprint::{self, address},
|
||||
build, check, docs, export, fmt, lsp, new,
|
||||
packages::{self, add},
|
||||
tx, uplc, Cmd,
|
||||
};
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use cmd::completion;
|
||||
|
||||
use owo_colors::OwoColorize;
|
||||
|
||||
mod cmd;
|
||||
@@ -16,6 +14,9 @@ mod cmd;
|
||||
fn main() -> miette::Result<()> {
|
||||
panic_handler();
|
||||
|
||||
#[cfg(feature = "bundle_openssl")]
|
||||
openssl_probe::init_ssl_cert_env_vars();
|
||||
|
||||
match Cmd::default() {
|
||||
Cmd::New(args) => new::exec(args),
|
||||
Cmd::Fmt(args) => fmt::exec(args),
|
||||
|
||||
Reference in New Issue
Block a user