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

Add support to build a host GCC for building the toolchain #1423

Merged
merged 1 commit into from
Feb 29, 2024

Commits on Feb 6, 2024

  1. Add support to build a host GCC for building the toolchain

    A significant amount of users of this project are using it for toolchain
    development. These users need to ensure that their code is warning free
    before submitting it upstream. Let's support this use case by adding a
    configure flag '--enable-host-gcc', which does exactly that:
    * build a host GCC before building other components
    * setting PATH such that this new GCC is used to build the cross
      toolchain
    * enable -Werror for the GCC build
    
    This patch was tested on a Fedora 39 machine (GCC 13),
    with the following modification in a GCC source file:
      #if __GNUC__ == 13
      #error Host compiler in use!
      #endif
    This fails when building without the new flag and does not fail
    when building with latest upstream/master (GCC 14 prerelease).
    
    The '--enable-werror-always' was tested with a warning that showed
    up recently in upstream GCC.
    
    Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
    cmuellner committed Feb 6, 2024
    Configuration menu
    Copy the full SHA
    b96a521 View commit details
    Browse the repository at this point in the history