mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-12 18:25:30 +00:00
build: fix android
This commit is contained in:
@@ -901,6 +901,17 @@ pub fn addSimd(
|
||||
}),
|
||||
.linkage = .static,
|
||||
});
|
||||
|
||||
// The vendored simdutf/highway headers (e.g. <cstring>, <cstdlib>)
|
||||
// pull in platform C headers that live inside the Android NDK or
|
||||
// Apple SDK sysroot.
|
||||
if (target.result.abi.isAndroid()) {
|
||||
try @import("android_ndk").addPaths(b, simd_cpp);
|
||||
}
|
||||
if (target.result.os.tag.isDarwin()) {
|
||||
try @import("apple_sdk").addPaths(b, simd_cpp);
|
||||
}
|
||||
|
||||
if (system_simdutf) {
|
||||
simd_cpp.root_module.linkSystemLibrary("simdutf", dynamic_link_opts);
|
||||
} else if (simdutf_lib) |lib| {
|
||||
|
||||
Reference in New Issue
Block a user