bump(main/emscripten): 3.1.57 (#19784)

This commit is contained in:
termux-pacman-bot
2024-04-16 09:09:01 +00:00
parent 0d62f01181
commit c1923efd9f
12 changed files with 83 additions and 53 deletions

View File

@@ -0,0 +1,22 @@
--- a/llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp
+++ b/llvm/tools/llvm-exegesis/lib/SubprocessMemory.cpp
@@ -22,7 +22,7 @@
namespace llvm {
namespace exegesis {
-#if defined(__linux__) && !defined(__ANDROID__)
+#if defined(__linux__)
long SubprocessMemory::getCurrentTID() {
// We're using the raw syscall here rather than the gettid() function provided
@@ -31,6 +31,10 @@
return syscall(SYS_gettid);
}
+#endif
+
+#if defined(__linux__) && !defined(__ANDROID__)
+
Error SubprocessMemory::initializeSubprocessMemory(pid_t ProcessID) {
// Add the PID to the shared memory name so that if we're running multiple
// processes at the same time, they won't interfere with each other.