We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc94489 commit b4f37c8Copy full SHA for b4f37c8
llama-cpp-sys-2/build.rs
@@ -1031,6 +1031,12 @@ fn main() {
1031
configure_emscripten_cc(&mut mtmd_build);
1032
}
1033
1034
+ // When static-stdcxx is enabled on Android, suppress the cc crate's automatic
1035
+ // C++ stdlib linking (which defaults to c++_shared) so we can link c++_static instead.
1036
+ if matches!(target_os, TargetOs::Android) && cfg!(feature = "static-stdcxx") {
1037
+ mtmd_build.cpp_link_stdlib(None);
1038
+ }
1039
+
1040
// Collect all .cpp files in tools/mtmd and its subdirectories
1041
for entry in glob(mtmd_src.join("**/*.cpp").to_str().unwrap()).unwrap() {
1042
match entry {
0 commit comments