diff options
| author | Jordan Rupprecht <rupprecht@google.com> | 2025-07-31 10:39:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-31 10:39:34 -0500 |
| commit | d520daeb820792e5a1a3f33a7564f71f6e8fc405 (patch) | |
| tree | 5425a957663fba246f68c2611361352ede503d0b /lldb/source/Commands/CommandObjectMemory.cpp | |
| parent | 3f066f5fcfbab3784b2ecc54744c2d7000a8c4fc (diff) | |
| download | llvm-d520daeb820792e5a1a3f33a7564f71f6e8fc405.zip llvm-d520daeb820792e5a1a3f33a7564f71f6e8fc405.tar.gz llvm-d520daeb820792e5a1a3f33a7564f71f6e8fc405.tar.bz2 | |
[bazel] Port #145358: LIBC_THREAD_MODE (#151539)
I'm not sure how libc should be configuring this in bazel, but for now
it seems like `LIBC_THREAD_MODE_PLATFORM` restores the default behavior.
Defining this param is required:
```
ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/c9d34ded3a9d94cc250207948aceadfc/external/llvm-project/libc/BUILD.bazel:5788:14: Compiling libc/src/stdio/generic/vprintf.cpp failed: (Exit 1): clang failed: error executing CppCompile command (from target @@llvm-project//libc:vprintf) /usr/lib/llvm-18/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer ... (remaining 31 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
In file included from external/llvm-project/libc/src/stdio/generic/vprintf.cpp:11:
In file included from external/llvm-project/libc/src/__support/File/file.h:19:
external/llvm-project/libc/src/__support/threads/mutex.h:25:2: error: LIBC_THREAD_MODE is undefined
25 | #error LIBC_THREAD_MODE is undefined
| ^
```
As an alternative to this PR, we could make the libc header default to
`LIBC_THREAD_MODE_PLATFORM` if not provided, instead of an `#error`
Diffstat (limited to 'lldb/source/Commands/CommandObjectMemory.cpp')
0 files changed, 0 insertions, 0 deletions
