[Openmp-commits] [openmp] [OpenMP] Move KMP_CANCEL_THREADS control from preprocessor to CMake (PR #193681)

Mark Zhuang via Openmp-commits openmp-commits at lists.llvm.org
Wed May 6 18:25:40 PDT 2026


zqb-all wrote:

> Are you suggesting that, the function still exists, but somehow they don't exist?

Thanks for the question. To clarify the downstream scenario:
The target embedded OS ships a heavily customized LLVM 15 toolchain​ and a stripped-down musl libc that does not support `pthread_cancel`.
We cannot upgrade the OS toolchain and muslc, but our application relies on features introduced in newer LLVM versions. Therefore, we must build it using a standard upstream LLVM toolchain ​( base on [riscv-gnu-toolchain](https://github.com/riscv-collab/riscv-gnu-toolchain))
This patch is required to ensure the OpenMP runtime does not depend on `pthread_cancel`, allowing binaries built with the new toolchain to run on that legacy OS environment.

https://github.com/llvm/llvm-project/pull/193681


More information about the Openmp-commits mailing list