Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cpp: Link to threads library #3794

Merged
merged 1 commit into from
Aug 28, 2022
Merged

Cpp: Link to threads library #3794

merged 1 commit into from
Aug 28, 2022

Commits on Aug 28, 2022

  1. Cpp: Link to threads library

    As detailed in antlr#3708, it is necessary to link against the (p)threads
    library in order to be able to use std::call_once without producing
    linker errors.
    
    Since this function is frequently used in ANTLR's cpp version, this
    commit ensures that the respective library is always linked against in
    order to avoid this error, even if downstream users are not explicitly
    linking against an appropriate threads library.
    
    Fixes antlr#3708
    
    Signed-off-by: Robert Adam <dev@robert-adam.de>
    
    Co-authored-by: Bryan Tan <Technius@users.noreply.github.com>
    Krzmbrzl and Technius committed Aug 28, 2022
    Configuration menu
    Copy the full SHA
    f55d251 View commit details
    Browse the repository at this point in the history