Files
nixpkgs/pkgs/by-name/je/jextract/copy_lib_clang.patch
Sean Gilligan 6f2c0a34f3 jextract: fix build on Darwin
Apply the Linux patch to the initialization string for `clang_path_include`
instead of replacing `clang_path_include` with the patched string. This
allows the correct value for Darwin to be selected by the ternary expression.
2026-05-12 22:00:45 -07:00

14 lines
547 B
Diff

diff --git a/build.gradle b/build.gradle
index 9ce544a..9445e97 100644
--- a/build.gradle
+++ b/build.gradle
@@ -76,7 +76,7 @@ task copyLibClang(type: Sync) {
// make sure we only pick up the "real" shared library file from LLVM installation
// (e.g. exclude symlinks on Linux)
def clang_path_include = (Os.isFamily(Os.FAMILY_UNIX) && !Os.isFamily(Os.FAMILY_MAC)) ?
- "libclang.so.${clang_version}" : "*clang*"
+ "libclang.so*" : "*clang*"
from("${libclang_dir}") {
include(clang_path_include)