================
@@ -1,3 +1,14 @@
+include(CheckSymbolExists)
+include(CMakePushCheckState)
+
+cmake_push_check_state()
+set(CMAKE_REQUIRED_DEFINITIONS -D_GNU_SOURCE)
+check_symbol_exists(gettid "unistd.h" HAVE_GETTID)
+if(HAVE_GETTID)
+  add_compile_definitions(-DHAVE_GETTID)
----------------
petrhosek wrote:

You can make this more targeted by applying it only to `ProcessElfCoreTests` 
with `target_compile_definitions`, but either way is fine with me.

https://github.com/llvm/llvm-project/pull/104831
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to