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

build: fix host_arch_cc() for AIX/IBM i #39481

Closed
wants to merge 1 commit into from

Commits on Jul 22, 2021

  1. build: fix host_arch_cc() for AIX/IBM i

    The AIX/IBM i branch in `host_arch_cc()` that hardcodes the compiler
    executable to `gcc` precludes picking up either `CC_host` or `CC`
    environment variables (if set) as is done on other platforms. On an
    AIX/IBM i platform where the compiler is, e.g. `gcc-10` instead of
    just `gcc`, the current check will fail to detect the host architecture
    and incorrectly default to `ia32`. Removing the AIX/IBM i specific
    branch will follow the same logic as on the other platforms:
    1. The value, if set, of the `CC_host` environment variable.
    2. Otherwise, if set, the value of the `CC` environment variable.
    3. `gcc` (`cc` if on macOS).
    richardlau committed Jul 22, 2021
    Copy the full SHA
    18f9779 View commit details
    Browse the repository at this point in the history