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

release/18.x: [libc++] Enable availability based on the compiler instead of __has_extension (#84065) #84374

Merged
merged 1 commit into from
Mar 13, 2024

Commits on Mar 13, 2024

  1. [libc++] Enable availability based on the compiler instead of __has_e…

    …xtension (llvm#84065)
    
    __has_extension(...) doesn't work as intended when -pedantic-errors is
    used with Clang. With that flag, __has_extension(...) is equivalent to
    __has_feature(...), which means that checks like
    
        __has_extension(pragma_clang_attribute_external_declaration)
    
    will return 0. In turn, this has the effect of disabling availability
    markup in libc++, which is undesirable.
    
    rdar://124078119
    (cherry picked from commit 292a28d)
    ldionne authored and tstellar committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    c14bf0a View commit details
    Browse the repository at this point in the history