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

cc-wrapper/add-hardening.sh: always unset _FORTIFY_SOURCE before re-s… #193871

Merged
merged 1 commit into from
Oct 8, 2022

Commits on Oct 1, 2022

  1. cc-wrapper/add-hardening.sh: always unset _FORTIFY_SOURCE before re-s…

    …etting it
    
    On darwin clang driver always sets -D_FORTIFY_SOURCE=0 under asan.
    This causes -Werror to trip over macro redefinition:
    
        <command line>:1:9: error: '_FORTIFY_SOURCE' macro redefined [-Werror,-Wmacro-redefined]
        #define _FORTIFY_SOURCE 2
                ^
    
    To avoid it let's always explicitly undefine it first before redefining.
    trofi committed Oct 1, 2022
    Configuration menu
    Copy the full SHA
    2a9fc04 View commit details
    Browse the repository at this point in the history