aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/MetadataLoader.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2024-11-07 00:18:57 +0200
committerGitHub <noreply@github.com>2024-11-07 00:18:57 +0200
commit87f4bc0acad65b1d20160d4160c7778b187125fc (patch)
tree7850a10380f1147593ac12beca7295253c59616e /llvm/lib/Bitcode/Reader/MetadataLoader.cpp
parent21ded66dba0adfd34250df93b5321709883f5e94 (diff)
downloadllvm-87f4bc0acad65b1d20160d4160c7778b187125fc.zip
llvm-87f4bc0acad65b1d20160d4160c7778b187125fc.tar.gz
llvm-87f4bc0acad65b1d20160d4160c7778b187125fc.tar.bz2
[compiler-rt] [fuzzer] Skip trying to set the thread name on MinGW (#115167)
Since b4130bee6bfd34d8045f02fc9f951bcb5db9d85c, we check for _LIBCPP_HAS_THREAD_API_PTHREAD to decide between using SetThreadDescription or pthread_setname_np for setting the thread name. c6f3b7bcd0596d30f8dabecdfb9e44f9a07b6e4c changed how libcxx defines their configuration macros - now they are always defined, but defined to 0 or 1, while they previously were either defined or undefined. As these libcxx defines used to be defined to an empty string (rather than expanding to 1) if enabled, we can't easily produce an expression that works both with older and newer libcxx. Additionally, these defines are libcxx internal config macros that aren't a detail that isn't supported and isn't meant to be relied upon. Simply skip trying to set thread name on MinGW as we can't easily know which kind of thread native handle we have. Setting the thread name is only a nice to have, quality of life improvement - things should work the same even without it. Additionally, libfuzzer isn't generally usable on MinGW targets yet (Clang doesn't include it in the getSupportedSanitizers() method for the MinGW target), so this shouldn't make any difference in practice anyway.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/MetadataLoader.cpp')
0 files changed, 0 insertions, 0 deletions