We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32efc81 commit 5d50ff0Copy full SHA for 5d50ff0
llama-cpp-sys-2/build.rs
@@ -843,6 +843,12 @@ fn main() {
843
mtmd_build.flag("/std:c++17");
844
}
845
846
+ // When static-stdcxx is enabled on Android, suppress the cc crate's automatic
847
+ // C++ stdlib linking (which defaults to c++_shared) so we can link c++_static instead.
848
+ if matches!(target_os, TargetOs::Android) && cfg!(feature = "static-stdcxx") {
849
+ mtmd_build.cpp_link_stdlib(None);
850
+ }
851
+
852
// Collect all .cpp files in tools/mtmd and its subdirectories
853
for entry in glob(mtmd_src.join("**/*.cpp").to_str().unwrap()).unwrap() {
854
match entry {
0 commit comments