[libcxx-commits] [libcxx] [libc++][Android] Disable fdsan in filebuf close.pass.cpp (PR #102412)

Ryan Prichard via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 8 17:00:09 PDT 2024


================
@@ -24,6 +19,15 @@
 #include "test_macros.h"
 #include "platform_support.h"
 
+// If we're building for a lower __ANDROID_API__, the Bionic versioner will
+// omit the function declarations from fdsan.h. We might be running on a newer
+// API level, though, so declare the API function here using weak.
+#if defined(__BIONIC__)
+#include <android/fdsan.h>
+enum android_fdsan_error_level android_fdsan_set_error_level(enum android_fdsan_error_level new_level)
----------------
rprichard wrote:

Yeah, that seems like a good idea. I can try adding those two `compile_flags` arguments to `llvm-libc++-android-ndk.cfg.in`.

https://github.com/llvm/llvm-project/pull/102412


More information about the libcxx-commits mailing list