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

Fix several issues during cross compiling #98328

Merged
merged 2 commits into from
Jul 9, 2022
Merged

Fix several issues during cross compiling #98328

merged 2 commits into from
Jul 9, 2022

Commits on Jul 4, 2022

  1. Fix cross compiling on macOS

    When cross compiling LLVM on an arm64 machine to x86_64, CMake will
    produce universal binaries by default, causing link errors. Explicitly
    set CMAKE_OSX_ARCHITECTURES to the one single target architecture.
    topjohnwu committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    ce9e719 View commit details
    Browse the repository at this point in the history
  2. Set CLANG_TABLEGEN when cross compiling clang

    When cross compiling rustc with `llvm.clang = true`, CLANG_TABLEGEN
    has to be set to the host clang-tblgen executable to build clang.
    topjohnwu committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    600026a View commit details
    Browse the repository at this point in the history