From 27b6f28268d1a16163c358062ebc0261619e9fbe Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Thu, 24 Oct 2024 00:35:53 -0400 Subject: [PATCH] [OpenMP] Fix the test issue when `libomp` is built as a static library Fixes #113436. --- openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp b/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp index bc02caccb69ed9..9a07564406f7f9 100644 --- a/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp +++ b/openmp/runtime/test/tasking/hidden_helper_task/gtid.cpp @@ -43,7 +43,7 @@ struct anon { }; } -kmp_int32 __kmp_hidden_helper_threads_num; +static kmp_int32 __kmp_hidden_helper_threads_num; kmp_int32 omp_task_entry(kmp_int32 gtid, kmp_task_t_with_privates *task) { auto shareds = reinterpret_cast(task->task.shareds);