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

Draft: (don't merge) build wheel with arrow fix for macos cross compilation #2799

Commits on Oct 22, 2024

  1. arrow: Fix cross-compiling errors on macos

    This fixes the issue with missing LZ4 symbols in the arm64
    wheel first introduced in v3.1.1.
    
    The crux of the issue is that Arrow was building lz4 (and zstd) in a
    separate cmake build, and it does not specially pass on the
    `CMAKE_OSX_ARCHITECTURES` flag that was set when perspective-server's
    build script invokes cmake.
    
    Arrow's build does forward on the value of CMAKE_TOOLCHAIN_FILE to its
    external dependencies, if it's set, so this commit creates two minimal
    toolchain files and uses them in the Mac build to set
    `CMAKE_OSX_ARCHITECTURES` (and a couple other variables) correctly when
    cross-compiling.
    
    a good follow-up would be to see if we can enable Python tests on
    arm64 using a macos-14 runner, which is available for public repos:
    <https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories>
    
    Signed-off-by: Tom Jakubowski <[email protected]>
    tomjakubowski committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    3ad6d2d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    312d675 View commit details
    Browse the repository at this point in the history