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

Remove -U_FORTIFY_SOURCE when thin_lto is enabled #15433

Merged
merged 1 commit into from
May 9, 2022
Merged

Remove -U_FORTIFY_SOURCE when thin_lto is enabled #15433

merged 1 commit into from
May 9, 2022

Commits on May 9, 2022

  1. Remove -U_FORTIFY_SOURCE when thin_lto is enabled

    Clang does not accept `-U` flags when doing lto backend actions:
    
    ```
    clang: error: argument unused during compilation: '-U _FORTIFY_SOURCE' [-Werror,-Wunused-command-line-argument]
    ```
    
    This isn't a problem for `-D` flags because of a special case:
    
    https://github.com/llvm/llvm-project/blob/10e99eb7e4adbb8e2407e2f6ae3d2e6420d060c9/clang/lib/Driver/ToolChains/Clang.cpp#L5579-L5582
    
    Closes #15007.
    
    PiperOrigin-RevId: 440314037
    keith authored and ckolli5 committed May 9, 2022
    Configuration menu
    Copy the full SHA
    6711e32 View commit details
    Browse the repository at this point in the history