[flang-commits] [clang] [flang] [flang][Driver] Support `-pthread` to the frontend. (PR #75739)

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Thu Dec 21 21:04:39 PST 2023


ergawy wrote:

> Hi @ergawy , thanks for this contribution! Could you add a test that would demonstrate compilation failing without `-pthread`?

Thanks for the suggestion. Actually I failed to do that 😆. After looking into it, seem that for the GNU toolchain, the `-pthread` flag would be redundant. That reason is that the pthread API is defined by `libc` which is linked in by the driver by default.

I think I will abandon this PR then. Just need to double check once more. 

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


More information about the flang-commits mailing list