mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
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.
14 lines
547 B
Diff
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)
|