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

Don't set -fno-threadsafe-statics on macOS as build option #22198

Closed

Commits on Aug 8, 2018

  1. build: Don't set -fno-threadsafe-statics on macOS

    This flag is not set on other platforms so it can produce inconsistent
    behaviour across platforms. For example, if you build an async node add-on
    which uses statics you can get race conditions due to static not supporting
    threads if the node add-on inherits from the Node common.gypi config. It is not
    disabled on other platforms such as Linux, it is not disabled by default in
    Xcode or clang.
    
    This setting has been there since the initial commit that introduces
    `common.gypi` and thus has been there since the start, it doesn't seem to be
    have added for any particular reason other than to potentially match the Xcode
    defaults at the time.
    kylef authored Aug 8, 2018
    Configuration menu
    Copy the full SHA
    595114a View commit details
    Browse the repository at this point in the history