[Lldb-commits] [lldb] WIP: [lldb][test] Workaround older systems that lack gettid (PR #104831)

Petr Hosek via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 19 14:42:33 PDT 2024


petrhosek wrote:

I think a more idiomatic approach would be to use CMake to check if `gettid` is available:
```
check_symbol_exists(gettid "unistd.h" HAVE_GETTID)
```
Then in `lldb/unittests/Process/elf-core/ThreadElfCoreTest.cpp` you'd define `gettid` only `#if !HAVE_GETTID`.

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


More information about the lldb-commits mailing list