From 5a34551905f1cf029eefd600511b2ff948205996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Mon, 9 Sep 2024 11:14:53 +0800 Subject: [PATCH] allow the use of the LLVM shared library Which in turns allows working around the incompatibility of the LLVM static library with Rust link-args=-rdynamic, which produces binaries that either fail to link (OpenBSD) or segfault on startup (Linux). The year is 2024 and compiler toolchains are still a trash fire like this. --- nac3core/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/Cargo.toml b/nac3core/Cargo.toml index a38034870..219c8ce9c 100644 --- a/nac3core/Cargo.toml +++ b/nac3core/Cargo.toml @@ -20,7 +20,7 @@ strum_macros = "0.26" [dependencies.inkwell] version = "0.4" default-features = false -features = ["llvm14-0", "target-x86", "target-arm", "target-riscv", "no-libffi-linking"] +features = ["llvm14-0-prefer-dynamic", "target-x86", "target-arm", "target-riscv", "no-libffi-linking"] [dev-dependencies] test-case = "1.2.0"