mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
0f22ea400c
The releases doesn't work on intel mac as libintl isn't available on the system by default. This makes `:language` not work for the shipped macos releases, though the reduction in build system complexity most likely outweighs that.
23 lines
809 B
Bash
Executable File
23 lines
809 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 \
|
|
-D CMAKE_FIND_FRAMEWORK=NEVER
|
|
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 \
|
|
-D ENABLE_LIBINTL=OFF \
|
|
-D CMAKE_FIND_FRAMEWORK=NEVER
|
|
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
|