Skip to content

Commit 767c2be

Browse files
committed
Remove thread profiler completely from non-pthreads builds. NFC
Split out from #26487
1 parent 428432a commit 767c2be

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

system/lib/pthread/threading_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void _emscripten_thread_exit_joinable(pthread_t thread);
6969
void _emscripten_thread_exit(void* result);
7070
void _emscripten_process_dlopen_queue(void);
7171

72-
#ifdef NDEBUG
72+
#if !defined(__EMSCRIPTEN_PTHREADS__) || defined(NDEBUG)
7373
#define emscripten_set_current_thread_status(newStatus)
7474
#define emscripten_conditional_set_current_thread_status(expectedStatus, newStatus)
7575
#else

tools/system_libs.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,7 @@ def get_files(self):
12111211
'pthread_kill.c',
12121212
'emscripten_thread_init.c',
12131213
'emscripten_yield.c',
1214+
'thread_profiler.c',
12141215
])
12151216
else:
12161217
ignore += ['thread']
@@ -1412,10 +1413,6 @@ def get_files(self):
14121413
if settings.MAIN_MODULE:
14131414
libc_files += files_in_path(path='system/lib/libc', filenames=['dynlink.c'])
14141415

1415-
libc_files += files_in_path(
1416-
path='system/lib/pthread',
1417-
filenames=['thread_profiler.c'])
1418-
14191416
libc_files += glob_in_path('system/lib/libc/compat', '*.c')
14201417

14211418
# Check for missing file in non_lto_files list. Do this here

0 commit comments

Comments
 (0)