mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
cc398c5b06
(cherry picked from commit b020a26d2d
)
14 lines
691 B
Bash
Executable File
14 lines
691 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
MACOSX_DEPLOYMENT_TARGET="$(sw_vers -productVersion | cut -f1 -d.)"
|
|
export MACOSX_DEPLOYMENT_TARGET
|
|
cmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} -D CMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} -D CMAKE_OSX_ARCHITECTURES=arm64\;x86_64
|
|
cmake --build .deps
|
|
cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=${NVIM_BUILD_TYPE} -D CMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET} -D CMAKE_OSX_ARCHITECTURES=arm64\;x86_64
|
|
cmake --build build
|
|
# Make sure we build everything for M1 as well
|
|
for macho in build/bin/* build/lib/nvim/parser/*.so; do
|
|
lipo -info "$macho" | grep -q arm64 || exit 1
|
|
done
|
|
cpack --config build/CPackConfig.cmake
|