From fca8a7707d4f1b506d6fee13c217570f9199ebfe Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 19 Jul 2022 15:49:29 +0200 Subject: [PATCH] Don't fail compilation on emscripten. --- public/common/TracySystem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/common/TracySystem.cpp b/public/common/TracySystem.cpp index 1248fdee..ba7e7ed4 100644 --- a/public/common/TracySystem.cpp +++ b/public/common/TracySystem.cpp @@ -78,6 +78,9 @@ TRACY_API uint32_t GetThreadHandleImpl() return lwp_gettid(); #elif defined __OpenBSD__ return getthrid(); +#elif defined __EMSCRIPTEN__ + // Not supported, but let it compile. + return 0; #else // To add support for a platform, retrieve and return the kernel thread identifier here. //