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

gcc/common/configure-flags.nix: fix comment #213909

Merged
merged 1 commit into from Feb 1, 2023
Merged

gcc/common/configure-flags.nix: fix comment #213909

merged 1 commit into from Feb 1, 2023

Commits on Feb 1, 2023

  1. gcc/common/configure-flags.nix: fix comment

    On a native (host==build==target) build, `${with_build_sysroot}` can
    be omitted.  In that case, the line modified by this commit is
    correct.
    
    However, if `--with-build-sysroot=` is passed to `./configure`, then
    `${with_build_sysroot}` will be used, similar to the cross case, and
    the headers will be taken from:
    
      ${with_build_sysroot}${native_system_header_dir}
    
    See:
    
      https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/configure.ac;h=62bc908b991ff0b700225aef32743cd3d7c4daaf;hb=HEAD#l2439
    
    This commit adjusts the comment to account for the case where
    `--with-build-sysroot` is passed to a native compiler.
    Adam Joseph committed Feb 1, 2023
    Configuration menu
    Copy the full SHA
    b02da45 View commit details
    Browse the repository at this point in the history